From e7c721228397bdf3f76cda0edda643a9d930da10 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sun, 28 Jan 2001 23:48:02 +0000 Subject: [PATCH] (w32_font_match): Allocate three more bytes to regex for '^', '$', and '\0'. --- src/w32fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w32fns.c b/src/w32fns.c index 649f15012a1..5b8074ca7ab 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -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; -- 2.39.2