datetime: Add error message
Aaron Marcher me@drkhsh.at
Sun, 06 May 2018 22:38:29 +0200
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
components/datetime.c
→
components/datetime.c
@@ -10,6 +10,7 @@ time_t t;
t = time(NULL); if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) { + fprintf(stderr, "strftime: Result string exceeds buffer size\n"); return NULL; }