summaryrefslogtreecommitdiff
path: root/components/datetime.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/datetime.c')
-rw-r--r--components/datetime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/datetime.c b/components/datetime.c
index 713b0fb..6dc9678 100644
--- a/components/datetime.c
+++ b/components/datetime.c
@@ -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;
}