* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM

bytes.
This commit is contained in:
Paul Eggert 2011-05-03 23:24:29 -07:00
parent e3601888f1
commit 288b08c747
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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;