]> git.eshelyaron.com Git - emacs.git/commitdiff
* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 May 2011 06:24:29 +0000 (23:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 May 2011 06:24:29 +0000 (23:24 -0700)
bytes.

src/ChangeLog
src/eval.c

index 87876ac9b8bbcac5e1c83eeedf7e0667cf385359..9fac265ae48cabc2ddfe02c053d39efb961167ff 100644 (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.
index 0187cf96705df232079d1ffb59cf0579e1958834..90ef02ef37bd7aab10852941d4008daa4ae0680e 100644 (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;