summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-06 22:38:29 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-06 22:38:29 +0200
commit932f65c37388220298b44c65e601c593e4e40b9e (patch)
tree63b86eba2e5c40c358c1d55b2e2f1a3dc77b2e6b /components
parentee5ec756218c852385c5ba5ef0f75b47ba59ec39 (diff)
datetime: Add error message
Diffstat (limited to 'components')
-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;
}