Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
288b08c7
Commit
288b08c7
authored
May 03, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM
bytes.
parent
e3601888
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/ChangeLog
src/ChangeLog
+3
-0
src/eval.c
src/eval.c
+1
-1
No files found.
src/ChangeLog
View file @
288b08c7
2011-05-04 Paul Eggert <eggert@cs.ucla.edu>
* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM
bytes.
* term.c: Don't include <stdarg.h>, as <lisp.h> does that.
Arithmetic overflows now return float rather than wrapping around.
...
...
src/eval.c
View file @
288b08c7
...
...
@@ -1994,7 +1994,7 @@ verror (const char *m, va_list ap)
{
char
buf
[
4000
];
size_t
size
=
sizeof
buf
;
size_t
size_max
=
min
(
MOST_POSITIVE_FIXNUM
,
SIZE_MAX
);
size_t
size_max
=
min
(
MOST_POSITIVE_FIXNUM
+
1
,
SIZE_MAX
);
size_t
mlen
=
strlen
(
m
);
char
*
buffer
=
buf
;
size_t
used
;
...
...
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