Author: cazfi
Date: Wed Jan 20 17:26:26 2016
New Revision: 31515

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

Reported by Konstantin Vedeneev <konved>

See bug #24328

Modified:
    branches/S2_6/common/version.c
    branches/S2_6/server/console.h
    branches/S2_6/server/settings.c

Modified: branches/S2_6/common/version.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/version.c?rev=31515&r1=31514&r2=31515&view=diff
==============================================================================
--- branches/S2_6/common/version.c      (original)
+++ branches/S2_6/common/version.c      Wed Jan 20 17:26:26 2016
@@ -38,7 +38,7 @@
 ***********************************************************************/
 const char *freeciv_name_version(void)
 {
-  static char msgbuf[128];
+  static char msgbuf[256];
 
 #if IS_BETA_VERSION
   fc_snprintf(msgbuf, sizeof (msgbuf), _("Freeciv version %s %s"),

Modified: branches/S2_6/server/console.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/console.h?rev=31515&r1=31514&r2=31515&view=diff
==============================================================================
--- branches/S2_6/server/console.h      (original)
+++ branches/S2_6/server/console.h      Wed Jan 20 17:26:26 2016
@@ -13,9 +13,10 @@
 #ifndef FC__CONSOLE_H
 #define FC__CONSOLE_H
 
+/* utility */
 #include "support.h"            /* bool type and fc__attribute */
 
-#define MAX_LEN_CONSOLE_LINE 512       /* closing \0 included */
+#define MAX_LEN_CONSOLE_LINE 1024  /* closing '\0' included */
 
 /* 
  * A note on "rfc-style":

Modified: branches/S2_6/server/settings.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/settings.c?rev=31515&r1=31514&r2=31515&view=diff
==============================================================================
--- branches/S2_6/server/settings.c     (original)
+++ branches/S2_6/server/settings.c     Wed Jan 20 17:26:26 2016
@@ -3520,7 +3520,7 @@
   int bit;
 
   if (pretty) {
-    char buf2[64];
+    char buf2[256];
     struct astring astr = ASTRING_INIT;
     struct strvec *vec = strvec_new();
     size_t len;


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

Reply via email to