From 3d7fdaec584ad7080d187b8aa53c6546d9c1d8d7 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 19 Feb 2013 00:57:24 +0100 Subject: date_sec2date_str(): Add missing semicolon Regression introduced in a363cb9b9111aed22d105adb0e7a8e9caab9bbe3. Signed-off-by: Lukas Fleischer --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, <); -- cgit v1.2.3-70-g09d2