Return to asprintf.c CVS log | Up to [local] / rpl / src |
version 1.42, 2013/02/27 17:11:39 | version 1.43, 2013/03/20 17:11:43 |
---|---|
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); |
} | } |