From: Kenichi Handa Date: Sun, 28 Jan 2001 23:48:02 +0000 (+0000) Subject: (w32_font_match): Allocate three more bytes to regex X-Git-Tag: emacs-pretest-21.0.97~50 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e7c721228397bdf3f76cda0edda643a9d930da10;p=emacs.git (w32_font_match): Allocate three more bytes to regex for '^', '$', and '\0'. --- 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;