From 124800adcdab54a5daea99e10eee3478b89bb6ef Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 25 Apr 2010 19:50:05 +0000 Subject: 2010-04-25 Joel Sherrill * libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A readv() with all iov_len equal to 0 should have no effect. --- cpukit/libcsupport/src/readv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/src/readv.c b/cpukit/libcsupport/src/readv.c index 85498b4cbc..cb64797d8d 100644 --- a/cpukit/libcsupport/src/readv.c +++ b/cpukit/libcsupport/src/readv.c @@ -74,7 +74,7 @@ ssize_t readv( if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); - if ( iov[v].iov_len <= 0 ) + if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ -- cgit v1.2.3