From eacf4a0d5609d7a203e7ff79793e7b19bbf8dfdb Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 16 Aug 2022 13:49:00 +0200 Subject: [PATCH] cwe-120 bugfix in timekeeper.cpp --- src/timekeeper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timekeeper.cpp b/src/timekeeper.cpp index e551b8ec..f366543a 100644 --- a/src/timekeeper.cpp +++ b/src/timekeeper.cpp @@ -332,7 +332,7 @@ time_t compileTime(void) { if (secs == -1) { // determine date - sscanf(__DATE__, "%s %d %d", s_month, &t.tm_mday, &year); + sscanf(__DATE__, "%4s %d %d", s_month, &t.tm_mday, &year); t.tm_mon = (strstr(month_names, s_month) - month_names) / 3; t.tm_year = year - 1900; // determine time