From 0d068a20676144e9fd6796cc77764c420d785394 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Tue, 21 Mar 2000 22:32:57 +0000 Subject: * all mallocs now use xmalloc (and so are OOM error safe), and the common error handling saves a few bytes. Thanks to Bob Tinsley for the patch. -Erik --- coreutils/date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/date.c') diff --git a/coreutils/date.c b/coreutils/date.c index b4c3e7153..652db8d74 100644 --- a/coreutils/date.c +++ b/coreutils/date.c @@ -276,7 +276,7 @@ int date_main(int argc, char **argv) } /* Print OUTPUT (after ALL that!) */ - t_buff = malloc(201); + t_buff = xmalloc(201); strftime(t_buff, 200, date_fmt, &tm_time); printf("%s\n", t_buff); -- cgit v1.2.3