projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e360188
)
* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 4 May 2011 06:24:29 +0000
(23:24 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 4 May 2011 06:24:29 +0000
(23:24 -0700)
bytes.
src/ChangeLog
patch
|
blob
|
history
src/eval.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 87876ac9b8bbcac5e1c83eeedf7e0667cf385359..9fac265ae48cabc2ddfe02c053d39efb961167ff 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,8
@@
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.
diff --git
a/src/eval.c
b/src/eval.c
index 0187cf96705df232079d1ffb59cf0579e1958834..90ef02ef37bd7aab10852941d4008daa4ae0680e 100644
(file)
--- a/
src/eval.c
+++ b/
src/eval.c
@@
-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;