diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 19:50:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 19:50:05 +0000 |
commit | 124800adcdab54a5daea99e10eee3478b89bb6ef (patch) | |
tree | 5afdc140b91414c556203b8c679ed18bee0d0563 /cpukit/libcsupport | |
parent | 2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-124800adcdab54a5daea99e10eee3478b89bb6ef.tar.bz2 |
2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/readv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |