Commit e7c72122 authored by Kenichi Handa's avatar Kenichi Handa

(w32_font_match): Allocate three more bytes to regex

for '^', '$', and '\0'.
parent 76581eab
......@@ -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;
......
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