* charset.c (load_charset_map_from_file): Allocate large
charset_map_entries structure on the heap rather than the stack.
(Bug#5526).
+2010-02-05 Chong Yidong <cyd@stupidchicken.com>
+
+ * charset.c (load_charset_map_from_file): Allocate large
+ charset_map_entries structure on the heap rather than the stack.
+ (Bug#5526).
+
2010-01-31 Kenichi Handa <handa@m17n.org>
* font.c (font_parse_xlfd): If FONT is a font-entity and pixel
error ("Failure in loading charset map: %S", SDATA (mapfile));
head = entries = ((struct charset_map_entries *)
- alloca (sizeof (struct charset_map_entries)));
+ xmalloc (sizeof (struct charset_map_entries)));
n_entries = 0;
eof = 0;
while (1)
close (fd);
load_charset_map (charset, head, n_entries, control_flag);
+ xfree (head);
}
static void