datetime: Add error message

This commit is contained in:
Aaron Marcher committed 2018-05-06 22:38:29 +02:00
1 parent ee5ec75621
commit 932f65c373
1 file changed
+1
+1
View File
@@ -10,6 +10,7 @@ datetime(const char *fmt)
t = time(NULL);
if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) {
fprintf(stderr, "strftime: Result string exceeds buffer size\n");
return NULL;
}