From 288b08c747644d42c1636c2b469f8c34836ccd35 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 May 2011 23:24:29 -0700 Subject: [PATCH] * eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM bytes. --- src/ChangeLog | 3 +++ src/eval.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 87876ac9b8b..9fac265ae48 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-05-04 Paul Eggert + * eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM + bytes. + * term.c: Don't include , as does that. Arithmetic overflows now return float rather than wrapping around. diff --git a/src/eval.c b/src/eval.c index 0187cf96705..90ef02ef37b 100644 --- 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; -- 2.39.2