Mercurial > emacs
diff src/fontset.c @ 35663:e5dea4a61cab
* fontset.c (fontset_pattern_regexp): Allocate three more bytes to
regex for '^', '$', and '\0'.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Sun, 28 Jan 2001 15:41:57 +0000 |
parents | 3551e8549d4e |
children | 751cb07c5f11 |
line wrap: on
line diff
--- a/src/fontset.c Sun Jan 28 13:13:00 2001 +0000 +++ b/src/fontset.c Sun Jan 28 15:41:57 2001 +0000 @@ -719,7 +719,7 @@ || strcmp (XSTRING (pattern)->data, CACHED_FONTSET_NAME)) { /* We must at first update the cached data. */ - char *regex = (char *) alloca (XSTRING (pattern)->size * 2); + char *regex = (char *) alloca (XSTRING (pattern)->size * 2 + 3); char *p0, *p1 = regex; /* Convert "*" to ".*", "?" to ".". */