[Libsysio-commit] HEAD: libsysio/src rw.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2007-10-09 17:21:50
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1312 Modified Files: rw.c Log Message: >From Bob Glossman (bo...@cr...) found during regression testing: pwrite returns -1 [EINVAL] The _do_ipio routine was sending the number of bytes in the buffer to the _do_ipiov, helper, routine to be used as the iovec count. Changed to one. Fixed. Index: rw.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/rw.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -b -B -p -r1.24 -r1.25 --- rw.c 9 Oct 2007 17:13:33 -0000 1.24 +++ rw.c 9 Oct 2007 17:21:47 -0000 1.25 @@ -720,7 +720,7 @@ _do_ipio(int fd, return IOID_FAIL; iov->iov_base = buf; iov->iov_len = count; - ioid = _do_ipiov(fd, f, iov, count, free_arg, offset, NULL); + ioid = _do_ipiov(fd, f, iov, 1, free_arg, offset, NULL); if (ioid == IOID_FAIL) free(iov); return ioid; |