diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-11-01 23:27:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-11-01 23:27:40 +0000 |
commit | 5d31bd467997a9697fef9eba6f70c4e532c25c8c (patch) | |
tree | 22836bd38aedcd03ef7f853493e37b9d4271e805 /usr.sbin/cron/misc.c | |
parent | 6aa7309217de4d63043b6be0f5e386c6f7ab9c04 (diff) |
Check malloc/strdup ret val and deal.
Diffstat (limited to 'usr.sbin/cron/misc.c')
-rw-r--r-- | usr.sbin/cron/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/misc.c b/usr.sbin/cron/misc.c index 160a0cd1896..4b78d69a227 100644 --- a/usr.sbin/cron/misc.c +++ b/usr.sbin/cron/misc.c @@ -16,7 +16,7 @@ */ #if !defined(lint) && !defined(LINT) -static char rcsid[] = "$Id: misc.c,v 1.1 1995/10/18 08:47:30 deraadt Exp $"; +static char rcsid[] = "$Id: misc.c,v 1.2 1996/11/01 23:27:37 millert Exp $"; #endif /* vix 26jan87 [RCS has the rest of the log] @@ -622,7 +622,8 @@ mkprints(src, len) { register char *dst = malloc(len*4 + 1); - mkprint(dst, src, len); + if (dst) + mkprint(dst, src, len); return dst; } |