summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrdwrv
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxrdwrv')
-rw-r--r--testsuites/psxtests/psxrdwrv/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c
index 6b0e105c86..7c2e8593d6 100644
--- a/testsuites/psxtests/psxrdwrv/test.c
+++ b/testsuites/psxtests/psxrdwrv/test.c
@@ -316,11 +316,11 @@ int doErrorTest(void)
/* writev -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SSIZE_MAX;
+ vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SSIZE_MAX;
+ vec[1].iov_len = SIZE_MAX;
vec[2].iov_base = vec;
- vec[2].iov_len = SSIZE_MAX;
+ vec[2].iov_len = SIZE_MAX;
puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
@@ -331,9 +331,9 @@ int doErrorTest(void)
/* readv -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SSIZE_MAX;
+ vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SSIZE_MAX;
+ vec[1].iov_len = SIZE_MAX;
puts("readv iov_len total overflows -- EINVAL");
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {