# HG changeset patch # User Kenichi Handa # Date 1114412007 0 # Node ID e29d4e885ecac8870dd3bc85c136f4e641399cd1 # Parent 07b2c6525e400f01101839f1026eb7dfcb815331 (load_charset_map_from_vector): Fix for the first iteration. diff -r 07b2c6525e40 -r e29d4e885eca src/charset.c --- a/src/charset.c Fri Apr 22 04:56:28 2005 +0000 +++ b/src/charset.c Mon Apr 25 06:53:27 2005 +0000 @@ -505,7 +505,7 @@ if (from < min_code || to > max_code || from > to || c > MAX_CHAR) continue; - if ((n_entries % 0x10000) == 0) + if (n_entries > 0 && (n_entries % 0x10000) == 0) { entries->next = ((struct charset_map_entries *) alloca (sizeof (struct charset_map_entries)));