From: Bruno Haible Date: Mon, 19 Mar 2007 01:02:27 +0000 (+0000) Subject: Undo first part of last patch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db0b7baa59cbee43eb2e984694047c2adef600ed;p=pspp Undo first part of last patch. --- diff --git a/ChangeLog b/ChangeLog index 034d46dc7d..99a8e8b648 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-18 Bruno Haible + + * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch. + Suggested by Eric Blake. + 2007-03-18 Ben Pfaff * doc/relocatable.texi: Recommend using as prefix a directory diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 8d0f516768..b67b507479 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -184,10 +184,6 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar { result = resultbuf; allocated = *lengthp; - /* POSIX says that snprintf() fails with EOVERFLOW when the specified - buffer size is larger than INT_MAX. Let's do the same here. */ - if (allocated > INT_MAX) - goto overflow; } else {