From fa304081fe7bcab74990eda3eb510befa299a36b Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Tue, 5 Nov 2019 08:41:58 +0100 Subject: [PATCH] Documentation : Add note about irreproductability of __DATE Signed-off-by: Gabriel Ravier --- src/Generic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generic.cpp b/src/Generic.cpp index 6656bd7f..8ea36f46 100644 --- a/src/Generic.cpp +++ b/src/Generic.cpp @@ -27,7 +27,7 @@ void GetCompileDate(int *year, int *month, int *day) months[10] = "Oct"; months[11] = "Nov"; months[12] = "Dec"; - sscanf(__DATE__, "%s %d %d", month_string, day, year); + sscanf(__DATE__, "%s %d %d", month_string, day, year); // The expansion of __DATE__ is not reproductible. We might want to change this for (i = 0; i < 12; ++i) // This being 12 instead of 13 might be a bug, but it works anyway by accident if (!memcmp(&month_string, months[i], 3))