Author: cazfi
Date: Sat Jan 23 15:13:08 2016
New Revision: 31552

URL: http://svn.gna.org/viewcvs/freeciv?rev=31552&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:
    trunk/client/cityrepdata.c

Modified: trunk/client/cityrepdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/cityrepdata.c?rev=31552&r1=31551&r2=31552&view=diff
==============================================================================
--- trunk/client/cityrepdata.c  (original)
+++ trunk/client/cityrepdata.c  Sat Jan 23 15:13:08 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")
@@ -515,7 +515,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)");


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

Reply via email to