HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(scan_lisp_file): Use xmalloc instead of malloc.
[bpt/emacs.git]
/
lib-src
/
make-docfile.c
diff --git
a/lib-src/make-docfile.c
b/lib-src/make-docfile.c
index
945a920
..
1cf63e3
100644
(file)
--- a/
lib-src/make-docfile.c
+++ b/
lib-src/make-docfile.c
@@
-909,7
+909,7
@@
scan_lisp_file (filename, mode)
/* Read in the contents. */
if (saved_string != 0)
free (saved_string);
/* Read in the contents. */
if (saved_string != 0)
free (saved_string);
- saved_string = (char *) malloc (length);
+ saved_string = (char *)
x
malloc (length);
for (i = 0; i < length; i++)
saved_string[i] = getc (infile);
/* The last character is a ^_.
for (i = 0; i < length; i++)
saved_string[i] = getc (infile);
/* The last character is a ^_.