all repos — slstatus @ 932f65c37388220298b44c65e601c593e4e40b9e

my build of slstatus (tools.suckless.org/slstatus/)

datetime: Add error message
Aaron Marcher me@drkhsh.at
Sun, 06 May 2018 22:38:29 +0200
commit

932f65c37388220298b44c65e601c593e4e40b9e

parent

ee5ec756218c852385c5ba5ef0f75b47ba59ec39

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M components/datetime.ccomponents/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; }