shithub: cstory

Download patch

ref: fa304081fe7bcab74990eda3eb510befa299a36b
parent: 9c56888ffd17a687953a2a3c79b5feab1843fb30
author: Gabriel Ravier <gabravier@gmail.com>
date: Tue Nov 5 03:41:58 EST 2019

Documentation : Add note about irreproductability of __DATE

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Generic.cpp
+++ b/src/Generic.cpp
@@ -27,7 +27,7 @@
 	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))