From: Ulrich Drepper Date: Wed, 19 Nov 1997 23:46:30 +0000 (+0000) Subject: Correct end condition. X-Git-Tag: cvs/glibc-2_0_6-pre2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64266ab6825d8da9e4b8dac49c3107716061a1c6;p=thirdparty%2Fglibc.git Correct end condition. --- diff --git a/sysdeps/posix/writev.c b/sysdeps/posix/writev.c index f6f685ce7a6..0fd9f78e222 100644 --- a/sysdeps/posix/writev.c +++ b/sysdeps/posix/writev.c @@ -57,7 +57,7 @@ __writev (fd, vector, count) bp += copy; to_copy -= copy; - if (bytes == 0) + if (to_copy == 0) break; }