Use safer xrealloc() instead of realloc()

This commit is contained in:
Jindrich Novy 2008-09-25 19:44:29 +02:00
parent 1dd1d68afe
commit aadc1a3146
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ char *rstrscat(char **dest, const char *arg, ...)
va_end(ap);
dst_size = dst ? strlen(dst) : 0;
dst = realloc(dst, dst_size+arg_size+1); /* include '\0' */
dst = xrealloc(dst, dst_size+arg_size+1); /* include '\0' */
p = &dst[dst_size];
va_start(ap, arg);