Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
938ebc4f
Commit
938ebc4f
authored
Dec 01, 2008
by
Dan Nicolaescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(scan_lisp_file): Use xmalloc instead of malloc.
parent
c115043b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lib-src/ChangeLog
lib-src/ChangeLog
+4
-0
lib-src/make-docfile.c
lib-src/make-docfile.c
+1
-1
No files found.
lib-src/ChangeLog
View file @
938ebc4f
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.
...
...
lib-src/make-docfile.c
View file @
938ebc4f
...
...
@@ -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
*
)
x
malloc
(
length
);
for
(
i
=
0
;
i
<
length
;
i
++
)
saved_string
[
i
]
=
getc
(
infile
);
/* The last character is a ^_.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment