Commit 288b08c7 authored by Paul Eggert's avatar Paul Eggert

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

bytes.
parent e3601888
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment