Author: cazfi
Date: Sat Jan 23 15:13:20 2016
New Revision: 31554

URL: http://svn.gna.org/viewcvs/freeciv?rev=31554&view=rev
Log:
Increased size of couple more static text buffers that were proving too small 
for
translations containing a lot of multi-byte UTF-8 characters.

Patch by Konstantin Vedeneev <konved>

See bug #24328

Modified:
    branches/S2_5/client/cityrepdata.c

Modified: branches/S2_5/client/cityrepdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/cityrepdata.c?rev=31554&r1=31553&r2=31554&view=diff
==============================================================================
--- branches/S2_5/client/cityrepdata.c  (original)
+++ branches/S2_5/client/cityrepdata.c  Sat Jan 23 15:13:20 2016
@@ -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")
@@ -516,7 +516,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) ? "" :
     concise_city_production ? "+" : _("(worklist)");


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

Reply via email to