diff options
author | John Polstra <jdp@FreeBSD.org> | 1997-01-24 00:07:03 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1997-01-24 00:07:03 +0000 |
commit | 18be4a71df49644a31da632571ca5a625785971c (patch) | |
tree | 38821b8d83fcac8ac328f114bd6fb77b1c3c2534 /gnu/usr.bin/ld/support.c | |
parent | a67fa10338ca70d5645855c20de08f12fd200971 (diff) |
Use xmalloc instead of malloc in two places, so that out-of-memory
conditions will be detected.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Notes
Notes:
svn path=/head/; revision=21967
Diffstat (limited to 'gnu/usr.bin/ld/support.c')
-rw-r--r-- | gnu/usr.bin/ld/support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/support.c b/gnu/usr.bin/ld/support.c index d952330ee2ce..71a84ffa1299 100644 --- a/gnu/usr.bin/ld/support.c +++ b/gnu/usr.bin/ld/support.c @@ -49,7 +49,7 @@ concat(s1, s2, s3) len += strlen(s2); if (s3) len += strlen(s3); - s = malloc(len); + s = xmalloc(len); s[0] = '\0'; if (s1) strcat(s, s1); |