diff --git a/lib/roken/strftime.c b/lib/roken/strftime.c index d95b88c1b..447c15543 100644 --- a/lib/roken/strftime.c +++ b/lib/roken/strftime.c @@ -286,7 +286,7 @@ strftime (char *buf, size_t maxsize, const char *format, "%02d:%02d", tm->tm_hour, tm->tm_min); - + break; case 's' : ret = snprintf (buf, maxsize - n, "%d", (int)mktime(rk_UNCONST(tm))); @@ -392,6 +392,6 @@ strftime (char *buf, size_t maxsize, const char *format, ++n; } } - *buf++ = '\0'; + *buf = '\0'; return n; }