Commit 938ebc4f authored by Dan Nicolaescu's avatar Dan Nicolaescu

(scan_lisp_file): Use xmalloc instead of malloc.

parent c115043b
2008-12-01 Dan Nicolaescu <dann@ics.uci.edu>
* make-docfile.c (scan_lisp_file): Use xmalloc instead of malloc.
2008-11-22 Derek Peschel <dpeschel@eskimo.com> (tiny change)
* etags.c (add_regex): Pass correct length to re_compile_pattern.
......
......@@ -909,7 +909,7 @@ scan_lisp_file (filename, mode)
/* Read in the contents. */
if (saved_string != 0)
free (saved_string);
saved_string = (char *) malloc (length);
saved_string = (char *) xmalloc (length);
for (i = 0; i < length; i++)
saved_string[i] = getc (infile);
/* The last character is a ^_.
......
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