diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-03-21 22:32:57 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-03-21 22:32:57 +0000 |
commit | 0d068a20676144e9fd6796cc77764c420d785394 (patch) | |
tree | af12b114d51e9ae7a8753baf09feb9ab8d654f26 /date.c | |
parent | c053e41fa0524d828bf90f47e5e3637b8facaadc (diff) |
* 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
Diffstat (limited to 'date.c')
-rw-r--r-- | date.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |