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

version 1.5, 2010/02/28 14:47:14 version 1.51, 2015/01/05 13:12:29
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.11    RPL/2 (R) version 4.1.19
   Copyright (C) 1989-2010 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 21 Line 21
   
   
 #include "rpl.h"  #include "rpl.h"
 #include <stdarg.h>  
   
   
 int  int
Line 48  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 66  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.5  
changed lines
  Added in v.1.51


CVSweb interface <joel.bertrand@systella.fr>