Diff for /rpl/src/asprintf.c between versions 1.30 and 1.47

version 1.30, 2011/09/26 15:57:09 version 1.47, 2013/12/03 09:36:10
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.4    RPL/2 (R) version 4.1.17
   Copyright (C) 1989-2011 Dr. BERTRAND Joël    Copyright (C) 1989-2013 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.30  
changed lines
  Added in v.1.47


CVSweb interface <joel.bertrand@systella.fr>