added a fix for the script-fu crash in chinese (and maybe other) locales.

2005-12-12  Michael Schumacher  <schumaml@cvs.gnome.org>

	* plug-ins/script-fu/siod/slib.c: added a fix for the script-fu
	crash in chinese (and maybe other) locales. Applied to both
	branches. Fixes bug #163212.
This commit is contained in:
Michael Schumacher 2005-12-12 23:08:48 +00:00 committed by Michael Schumacher
parent cf49cb3c5c
commit c3ad5bdb84
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-12-12 Michael Schumacher <schumaml@cvs.gnome.org>
* plug-ins/script-fu/siod/slib.c: added a fix for the script-fu
crash in chinese (and maybe other) locales. Applied to both
branches. Fixes bug #163212.
2005-12-11 Michael Natterer <mitch@gimp.org>
* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): fall back to

View File

@ -1131,7 +1131,7 @@ gen_intern (char *name, long copyp)
n = obarray_dim;
cname = name;
while ((c = *cname++))
hash = ((hash * 17) ^ c) % n;
hash = ((hash * 17) ^ (unsigned char)c) % n;
sl = obarray[hash];
}
else