projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5ec75
)
datetime: Add error message
author
Aaron Marcher
<me@drkhsh.at>
Sun, 6 May 2018 20:38:29 +0000
(22:38 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sun, 6 May 2018 20:38:29 +0000
(22:38 +0200)
components/datetime.c
patch
|
blob
|
history
diff --git
a/components/datetime.c
b/components/datetime.c
index 713b0fb98e69ba557e377c4e96b4a3be4699baea..6dc9678b26264ee682b386b7dfefe3b9055ba8b1 100644
(file)
--- 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;
}