Follow-up Comment #7, bug #24328 (project freeciv):

Two more buffers from city list:

1. strlen(Q_("?city_state:Peace"))=22
2. _("J.S. Bach's Cathedral"), " (1234/5678) ", _("(worklist)")
oversizes 128 bits.


--- client/cityrepdata.c        (revision 31516)
+++ client/cityrepdata.c        (working copy)
@@ -102,7 +102,7 @@
 static const char *cr_entry_hstate_verbose(const struct city *pcity,
                       const void *data)
 {
-  static char buf[16];
+  static char buf[32];
   fc_snprintf(buf, sizeof(buf), "%s",
               (city_celebrating(pcity) ? Q_("?city_state:Celebrating")
                : (city_unhappy(pcity) ? Q_("?city_state:Disorder")
@@ -517,7 +517,7 @@
 static const char *cr_entry_building(const struct city *pcity,
                     const void *data)
 {
-  static char buf[128];
+  static char buf[192];
   const char *from_worklist =
     worklist_is_empty(&pcity->worklist) ? "" :
     gui_options.concise_city_production ? "+" : _("(worklist)");



    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?24328>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to