aboutsummaryrefslogtreecommitdiff
path: root/coreutils/date.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-03-21 22:32:57 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-03-21 22:32:57 +0000
commitd67b2b05efca2a57f7f25e521450c200ef38803e (patch)
treeaf12b114d51e9ae7a8753baf09feb9ab8d654f26 /coreutils/date.c
parentcfe2ce6d7262d074b6fe0c1dea4d96df37e8a9ef (diff)
downloadbusybox-w32-d67b2b05efca2a57f7f25e521450c200ef38803e.tar.gz
busybox-w32-d67b2b05efca2a57f7f25e521450c200ef38803e.tar.bz2
busybox-w32-d67b2b05efca2a57f7f25e521450c200ef38803e.zip
* all mallocs now use xmalloc (and so are OOM error safe), and
the common error handling saves a few bytes. Thanks to Bob Tinsley <bob@earthrise.demon.co.uk> for the patch. -Erik git-svn-id: svn://busybox.net/trunk/busybox@416 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/date.c')
-rw-r--r--coreutils/date.c2
1 files changed, 1 insertions, 1 deletions
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)
276 } 276 }
277 277
278 /* Print OUTPUT (after ALL that!) */ 278 /* Print OUTPUT (after ALL that!) */
279 t_buff = malloc(201); 279 t_buff = xmalloc(201);
280 strftime(t_buff, 200, date_fmt, &tm_time); 280 strftime(t_buff, 200, date_fmt, &tm_time);
281 printf("%s\n", t_buff); 281 printf("%s\n", t_buff);
282 282