diff options
-rw-r--r-- | includes/rts/Flags.h | 1 | ||||
-rw-r--r-- | rts/RtsFlags.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/rts/Flags.h b/includes/rts/Flags.h index 6700f9d95f..6040201c73 100644 --- a/includes/rts/Flags.h +++ b/includes/rts/Flags.h @@ -263,7 +263,6 @@ extern RTS_FLAGS RtsFlags; #define STATS_FILENAME_MAXLEN 128 #define GR_FILENAME_FMT "%0.124s.gr" -#define GR_FILENAME_FMT_GUM "%0.120s.%03d.%s" #define HP_FILENAME_FMT "%0.124s.hp" #define LIFE_FILENAME_FMT "%0.122s.life" #define PROF_FILENAME_FMT "%0.122s.prof" diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 06d59f0550..ec21ef1050 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -1636,7 +1636,8 @@ openStatsFile (char *filename, // filename, or NULL } /* default <program>.<ext> */ char stats_filename[STATS_FILENAME_MAXLEN]; - sprintf(stats_filename, filename_fmt, prog_name); + snprintf(stats_filename, STATS_FILENAME_MAXLEN, filename_fmt, + prog_name); f = fopen(stats_filename,"w"); } if (f == NULL) { |