changeset 35674:62b578dd28ce

(w32_font_match): Allocate three more bytes to regex for '^', '$', and '\0'.
author Kenichi Handa <handa@m17n.org>
date Sun, 28 Jan 2001 23:48:02 +0000
parents bbf85a5672d9
children 45df875afd43
files src/w32fns.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Sun Jan 28 23:47:30 2001 +0000
+++ b/src/w32fns.c	Sun Jan 28 23:48:02 2001 +0000
@@ -6489,7 +6489,7 @@
     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;