From 932f65c37388220298b44c65e601c593e4e40b9e Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sun, 6 May 2018 22:38:29 +0200 Subject: datetime: Add error message --- components/datetime.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3