diff options
-rw-r--r-- | components/datetime.c | 1 |
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; } |