summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slstatus.c b/slstatus.c
index fa627df..42e5751 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -168,13 +168,13 @@ char *
get_datetime()
{
time_t tm;
- size_t bufsize = 19;
+ size_t bufsize = 64;
char *buf = malloc(bufsize);
/* get time in format */
time(&tm);
if(!strftime(buf, bufsize, timeformat, localtime(&tm))) {
- fprintf(stderr, "Strftime failed.\n");
+ fprintf(stderr, "Strftime failed.\n");
exit(1);
}