diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-05-06 22:38:29 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-06 22:38:29 +0200 |
commit | 5b2210d3d3731a8a85e46b40d89b67f115a3b8c5 (patch) | |
tree | 63b86eba2e5c40c358c1d55b2e2f1a3dc77b2e6b /components/datetime.c | |
parent | 06cee3ffb6e76a7fd7430e4f8b97b1b6c4d3d18b (diff) |
datetime: Add error message
Diffstat (limited to 'components/datetime.c')
-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; } |