mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-12-09 05:54:45 +00:00
none
SCCS-file: ialloc.c SCCS-SID: 6.6
This commit is contained in:
committed by
Paul Eggert
parent
d0431bb3dd
commit
b8787c694b
2
ialloc.c
2
ialloc.c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user