summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout/support.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-01-24 00:07:03 +0000
committerjdp <jdp@FreeBSD.org>1997-01-24 00:07:03 +0000
commitd7912405bd63fd27189362ee4a11dffa325fff9d (patch)
tree38821b8d83fcac8ac328f114bd6fb77b1c3c2534 /libexec/rtld-aout/support.c
parent704d6242cf58ec56922eadc2391551d4dbcc9674 (diff)
downloadFreeBSD-src-d7912405bd63fd27189362ee4a11dffa325fff9d.zip
FreeBSD-src-d7912405bd63fd27189362ee4a11dffa325fff9d.tar.gz
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>
Diffstat (limited to 'libexec/rtld-aout/support.c')
-rw-r--r--libexec/rtld-aout/support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-aout/support.c b/libexec/rtld-aout/support.c
index d952330..71a84ff 100644
--- a/libexec/rtld-aout/support.c
+++ b/libexec/rtld-aout/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);
OpenPOWER on IntegriCloud