From 18be4a71df49644a31da632571ca5a625785971c Mon Sep 17 00:00:00 2001 From: John Polstra Date: Fri, 24 Jan 1997 00:07:03 +0000 Subject: Use xmalloc instead of malloc in two places, so that out-of-memory conditions will be detected. Submitted by: Philippe Charnier --- libexec/rtld-aout/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/rtld-aout') diff --git a/libexec/rtld-aout/support.c b/libexec/rtld-aout/support.c index d952330ee2ce..71a84ffa1299 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); -- cgit v1.3