projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0341ec
)
fixed compiler warning with GCC 13
author
Holger Schemel
<info@artsoft.org>
Wed, 12 Feb 2025 18:14:21 +0000
(19:14 +0100)
committer
Holger Schemel
<info@artsoft.org>
Wed, 12 Feb 2025 18:14:21 +0000
(19:14 +0100)
src/libgame/misc.c
patch
|
blob
|
history
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 3ab4f57cf33e0a50e42b3cf3a7b0beafd730e03d..7ae701955913e97eeb963e61e8004d7d15262222 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-993,7
+993,7
@@
char *getDefaultUserName(int nr)
char *getTimestampFromEpoch(time_t epoch_seconds)
{
struct tm *now = localtime(&epoch_seconds);
- static char timestamp[
2
0];
+ static char timestamp[
10
0];
sprintf(timestamp, "%04d%02d%02d-%02d%02d%02d",
now->tm_year + 1900, now->tm_mon + 1, now->tm_mday,