Commit b23c0a83 authored by Dave Love's avatar Dave Love

(shrink_regexp_cache): Use xrealloc.

(syms_of_search): Use xmalloc.
parent 72f295ec
2003-06-11 Dave Love <fx@gnu.org>
* search.c (shrink_regexp_cache): Use xrealloc.
(syms_of_search): Use xmalloc.
2003-06-10 Kim F. Storm <storm@cua.dk>
* xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
......@@ -22,6 +27,8 @@
2003-06-05 Dave Love <fx@gnu.org>
* strftime.c: Merge changes from gnulib.
* mktime.c (__mktime_internal): Merge changes from gnulib
involving year 69 and dst2.
......
......@@ -183,7 +183,7 @@ shrink_regexp_cache ()
{
cp->buf.allocated = cp->buf.used;
cp->buf.buffer
= (unsigned char *) realloc (cp->buf.buffer, cp->buf.used);
= (unsigned char *) xrealloc (cp->buf.buffer, cp->buf.used);
}
}
......@@ -2901,7 +2901,7 @@ syms_of_search ()
for (i = 0; i < REGEXP_CACHE_SIZE; ++i)
{
searchbufs[i].buf.allocated = 100;
searchbufs[i].buf.buffer = (unsigned char *) malloc (100);
searchbufs[i].buf.buffer = (unsigned char *) xmalloc (100);
searchbufs[i].buf.fastmap = searchbufs[i].fastmap;
searchbufs[i].regexp = Qnil;
staticpro (&searchbufs[i].regexp);
......
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