Diff for /rpl/src/asprintf.c between versions 1.33 and 1.51

version 1.33, 2012/01/17 14:44:04 version 1.51, 2015/01/05 13:12:29
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.6    RPL/2 (R) version 4.1.19
   Copyright (C) 1989-2012 Dr. BERTRAND Joël    Copyright (C) 1989-2015 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 47  valsprintf(unsigned char **strp, const c Line 47  valsprintf(unsigned char **strp, const c
             return -1;              return -1;
         }          }
   
         if (((int) (s = vsnprintf(b, bs, fmt, cap))) < 0)          if (((int) (s = (size_t) vsnprintf(b, bs, fmt, cap))) < 0)
         {          {
             free(b);              free(b);
             return -1;              return -1;
Line 65  valsprintf(unsigned char **strp, const c Line 65  valsprintf(unsigned char **strp, const c
         return -1;          return -1;
     }      }
   
     return s;      return((int) s);
 }  }
   
   

Removed from v.1.33  
changed lines
  Added in v.1.51


CVSweb interface <joel.bertrand@systella.fr>