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
2bccce07
Commit
2bccce07
authored
Jun 06, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* alloc.c (Fmake_string): Check for out-of-range init.
parent
81eafe29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/alloc.c
src/alloc.c
+2
-2
No files found.
src/ChangeLog
View file @
2bccce07
2011-06-07 Paul Eggert <eggert@cs.ucla.edu>
* alloc.c (Fmake_string): Check for out-of-range init.
2011-06-07 Daniel Colascione <dan.colascione@gmail.com>
* fns.c (Fputhash): Document return value.
...
...
src/alloc.c
View file @
2bccce07
...
...
@@ -2186,9 +2186,9 @@ INIT must be an integer that represents a character. */)
EMACS_INT
nbytes
;
CHECK_NATNUM
(
length
);
CHECK_
NUMB
ER
(
init
);
CHECK_
CHARACT
ER
(
init
);
c
=
XINT
(
init
);
c
=
X
FAST
INT
(
init
);
if
(
ASCII_CHAR_P
(
c
))
{
nbytes
=
XINT
(
length
);
...
...
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