aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/support.c
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-01-24 00:07:03 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-01-24 00:07:03 +0000
commit18be4a71df49644a31da632571ca5a625785971c (patch)
tree38821b8d83fcac8ac328f114bd6fb77b1c3c2534 /gnu/usr.bin/ld/support.c
parenta67fa10338ca70d5645855c20de08f12fd200971 (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.c2
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);