diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index b7dbf42..11b7d60 100644 --- a/src/utils.c +++ b/src/utils.c @@ -381,7 +381,7 @@ char *date_sec2date_str(long sec, const char *datefmt) char *datestr = (char *)mem_calloc(BUFSIZ, sizeof(char)); if (sec == 0) { - strncpy(datestr, "0", BUFSIZ) + strncpy(datestr, "0", BUFSIZ); } else { localtime_r((time_t *)&sec, <); strftime(datestr, BUFSIZ, datefmt, <); |