summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/fe-windows.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c
index 5f2af823..fba29a51 100644
--- a/src/fe-common/core/fe-windows.c
+++ b/src/fe-common/core/fe-windows.c
@@ -421,13 +421,14 @@ static void sig_server_disconnected(SERVER_REC *server)
static void sig_print_text(void)
{
GSList *tmp;
- char month[10];
+ char month[100];
time_t t;
struct tm *tm;
t = time(NULL);
tm = localtime(&t);
- strftime(month, sizeof(month)-1, "%b", tm);
+ if (strftime(month, sizeof(month), "%b", tm) <= 0)
+ month[0] = '\0';
if (tm->tm_hour != 0 || tm->tm_min != 0)
return;