Undo first part of last patch.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Mar 2007 01:02:27 +0000 (01:02 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 19 Mar 2007 01:02:27 +0000 (01:02 +0000)
ChangeLog
lib/vasnprintf.c

index 034d46d..99a8e8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
+       Suggested by Eric Blake.
+
 2007-03-18  Ben Pfaff  <blp@gnu.org>
 
        * doc/relocatable.texi: Recommend using as prefix a directory
index 8d0f516..b67b507 100644 (file)
@@ -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
       {