* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM
bytes.
This commit is contained in:
parent
e3601888f1
commit
288b08c747
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue