Loading...
stdio/FreeBSD/vsnprintf.c Libc-1725.40.4 Libc-997.1.1
--- Libc/Libc-1725.40.4/stdio/FreeBSD/vsnprintf.c
+++ Libc/Libc-997.1.1/stdio/FreeBSD/vsnprintf.c
@@ -56,15 +56,8 @@
 	on = n;
 	if (n != 0)
 		n--;
-#if defined(__i386__)
-	/* <rdar://problem/16329527> don't corrupt the output buffer at all if the size underflowed */
-	if (n > INT_MAX)
-		on = n = 0;
-#else
 	if (n > INT_MAX)
 		n = INT_MAX;
-#endif
-
 	/* Stdio internals do not deal correctly with zero length buffer */
 	if (n == 0) {
 		if (on > 0)