Commit 5604ec34 authored by Andrew Choi's avatar Andrew Choi
Browse files

* fontset.c (fontset_pattern_regexp): Allocate three more bytes to

regex for '^', '$', and '\0'.
parent 8005142f
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.
......
......@@ -719,7 +719,7 @@ fontset_pattern_regexp (pattern)
|| 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 ".". */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment