Loading...
stdio/FreeBSD/wbuf.c.patch Libc-583 Libc-320.1.3
--- Libc/Libc-583/stdio/FreeBSD/wbuf.c.patch
+++ Libc/Libc-320.1.3/stdio/FreeBSD/wbuf.c.patch
@@ -1,7 +1,7 @@
---- wbuf.c.orig	2004-06-07 22:45:32.000000000 -0700
-+++ wbuf.c	2004-10-25 00:49:10.000000000 -0700
+--- wbuf.c.orig	Mon Mar 22 13:35:00 2004
++++ wbuf.c	Mon Mar 22 13:38:02 2004
 @@ -41,6 +41,7 @@
- __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.11 2004/06/08 05:45:32 das Exp $");
+ __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.10 2002/08/13 09:30:41 tjr Exp $");
  
  #include <stdio.h>
 +#include <errno.h>
@@ -12,8 +12,8 @@
  	 * calls might wrap _w from negative to positive.
  	 */
  	fp->_w = fp->_lbfsize;
--	if (prepwrite(fp) != 0)
-+	if (prepwrite(fp) != 0) {
+-	if (cantwrite(fp))
++	if (cantwrite(fp)) {
 +		errno = EBADF;
  		return (EOF);
 +	}