1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-09 05:54:45 +00:00
SCCS-file: ialloc.c
SCCS-SID: 6.6
This commit is contained in:
Arthur David Olson
1985-01-14 22:52:38 -05:00
committed by Paul Eggert
parent d0431bb3dd
commit b8787c694b

View File

@ -24,7 +24,7 @@ char * new;
new = "";
toalloc = strlen(new) + 1;
ret = (old == NULL) ? calloc(toalloc, sizeof *ret) :
realloc(old, (toalloc + strlen(old)) * sizeof *ret));
realloc(old, (toalloc + strlen(old)) * sizeof *ret);
if (ret != NULL)
(void) strcat(ret, new);
return ret;