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 034d46dc7d147b31e6b54e56c27514e22d6b6afd..99a8e8b6486ddf2af66d102594f89c27ad2daab9 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 8d0f516768b5dfbc22dbfaa01141af8bac3df65d..b67b507479ef62ea0ece7320850ecf8d34054184 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
       {