Commit 3088147c authored by Chong Yidong's avatar Chong Yidong

Fix for Bug#5526.

* charset.c (load_charset_map_from_file): Allocate large
charset_map_entries structure on the heap rather than the stack.
(Bug#5526).
parent bdd42899
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
......
......@@ -526,7 +526,7 @@ load_charset_map_from_file (charset, mapfile, control_flag)
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)
......@@ -563,6 +563,7 @@ load_charset_map_from_file (charset, mapfile, control_flag)
close (fd);
load_charset_map (charset, head, n_entries, control_flag);
xfree (head);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment