diff options
Diffstat (limited to 'lib/date_to_str.c')
-rw-r--r-- | lib/date_to_str.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/date_to_str.c b/lib/date_to_str.c index 4a5ca515..fade4b5a 100644 --- a/lib/date_to_str.c +++ b/lib/date_to_str.c @@ -11,30 +11,29 @@ #ident "$Id$" -#include "strtcpy.h" #include "prototypes.h" void -date_to_str(size_t size, char buf[size], long date) +date_to_str(char buf[64], long date) { time_t t; const struct tm *tm; t = date; if (date < 0) { - (void) strtcpy(buf, "never", size); + strcpy(buf, "never"); return; } tm = gmtime(&t); if (tm == NULL) { - (void) strtcpy(buf, "future", size); + strcpy(buf, "future"); return; } - if (strftime(buf, size, "%Y-%m-%d", tm) == 0) { - (void) strtcpy(buf, "future", size); + if (strftime(buf, 64, "%Y-%m-%d", tm) == 0) { + strcpy(buf, "future"); return; } } |