Per Shin-Ichi:

Current official package of rubber stamps include very long
description such as explanation of the motion of chess knight.
So, buffer lengths in "loaddesc()" is not enough for translated
strings especially in the case of multibyte languages.
This commit is contained in:
William Kendrick 2007-05-10 19:23:39 +00:00
parent 32f049c926
commit bc63859a5a

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - May 6, 2007
June 14, 2002 - May 10, 2007
$Id$
*/
@ -10196,7 +10196,7 @@ static void strip_trailing_whitespace(char *buf)
static char *loaddesc(const char *const fname, Uint8 * locale_text)
{
char *txt_fname, *extptr;
char buf[256], def_buf[256];
char buf[512], def_buf[512]; // doubled to 512 per TOYAMA Shin-Ichi's requested; -bjk 2007.05.10
int found, got_first;
FILE *fi;