Author: cazfi Date: Wed Jan 20 17:26:20 2016 New Revision: 31514 URL: http://svn.gna.org/viewcvs/freeciv?rev=31514&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: trunk/common/version.c trunk/server/console.h trunk/server/settings.c Modified: trunk/common/version.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/version.c?rev=31514&r1=31513&r2=31514&view=diff ============================================================================== --- trunk/common/version.c (original) +++ trunk/common/version.c Wed Jan 20 17:26:20 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: trunk/server/console.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/console.h?rev=31514&r1=31513&r2=31514&view=diff ============================================================================== --- trunk/server/console.h (original) +++ trunk/server/console.h Wed Jan 20 17:26:20 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: trunk/server/settings.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/settings.c?rev=31514&r1=31513&r2=31514&view=diff ============================================================================== --- trunk/server/settings.c (original) +++ trunk/server/settings.c Wed Jan 20 17:26:20 2016 @@ -3531,7 +3531,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