changeset 8472:ef3eabf2defb

Undo first part of last patch.
author Bruno Haible <bruno@clisp.org>
date Mon, 19 Mar 2007 01:02:27 +0000
parents 7251aef6b316
children dba8f47ea9b8
files ChangeLog lib/vasnprintf.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -184,10 +184,6 @@
       {
 	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
       {