fixed compiler warning with GCC 13
authorHolger Schemel <info@artsoft.org>
Wed, 12 Feb 2025 18:14:21 +0000 (19:14 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 12 Feb 2025 18:14:21 +0000 (19:14 +0100)
src/libgame/misc.c

index 3ab4f57cf33e0a50e42b3cf3a7b0beafd730e03d..7ae701955913e97eeb963e61e8004d7d15262222 100644 (file)
@@ -993,7 +993,7 @@ char *getDefaultUserName(int nr)
 char *getTimestampFromEpoch(time_t epoch_seconds)
 {
   struct tm *now = localtime(&epoch_seconds);
-  static char timestamp[20];
+  static char timestamp[100];
 
   sprintf(timestamp, "%04d%02d%02d-%02d%02d%02d",
          now->tm_year + 1900, now->tm_mon + 1, now->tm_mday,