Mercurial > emacs
changeset 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 | 11b616e892be |
children | 16e83e3dab3d |
files | src/ChangeLog src/fontset.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sun Jan 28 13:13:00 2001 +0000 +++ b/src/ChangeLog Sun Jan 28 15:41:57 2001 +0000 @@ -1,5 +1,8 @@ 2001-01-28 Andrew Choi <akochoi@i-cable.com> + * fontset.c (fontset_pattern_regexp): Allocate three more bytes to + regex for '^', '$', and '\0'. + * alloc.c (allocate_string) [macintosh]: Call check_string_bytes only if current_sblock has been initialized.
--- 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 ".". */