Author: cazfi
Date: Fri May  5 08:02:16 2017
New Revision: 35399

URL: http://svn.gna.org/viewcvs/freeciv?rev=35399&view=rev
Log:
Fix gcc7 warning

See hrm Feature #657332

Modified:
    branches/S3_0/server/legacysave.c

Modified: branches/S3_0/server/legacysave.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/legacysave.c?rev=35399&r1=35398&r2=35399&view=diff
==============================================================================
--- branches/S3_0/server/legacysave.c   (original)
+++ branches/S3_0/server/legacysave.c   Fri May  5 08:02:16 2017
@@ -952,8 +952,8 @@
                  ptile->resource = identifier_to_resource(ch));
 
     special_halfbyte_iterate(j, num_special_types) {
-      char buf[16]; /* enough for sprintf() below */
-      sprintf (buf, "map.spe%02d_%%03d", j);
+      char buf[20]; /* enough for sprintf() below */
+      sprintf(buf, "map.spe%02d_%%03d", j);
 
       LOAD_MAP_DATA(ch, nat_y, ptile,
          secfile_lookup_str(file, buf, nat_y),
@@ -1010,7 +1010,7 @@
     zeroline[i] = '\0';
 
     bases_halfbyte_iterate(j, num_bases_types) {
-      char buf[16]; /* enough for sprintf() below */
+      char buf[20]; /* enough for sprintf() below */
       sprintf(buf, "map.b%02d_%%03d", j);
 
       LOAD_MAP_DATA(ch, nat_y, ptile,


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to