1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00

(w32_font_match): Allocate three more bytes to regex

for '^', '$', and '\0'.
This commit is contained in:
Kenichi Handa 2001-01-28 23:48:02 +00:00
parent 76581eab9b
commit e7c7212283

View file

@ -6489,7 +6489,7 @@ w32_font_match (fontname, pattern)
char * fontname;
char * pattern;
{
char *regex = alloca (strlen (pattern) * 2);
char *regex = alloca (strlen (pattern) * 2 + 3);
char *font_name_copy = alloca (strlen (fontname) + 1);
char *ptr;