Bug 492170: fixed a bug in pt_hpux_sendfile_cont caused by a typo NSPR_4_7_BRANCH
authorwtc%google.com
Sat, 13 Jun 2009 13:16:40 +0000
branchNSPR_4_7_BRANCH
changeset 4129 73041caade4f51f5f3fe68c8b5457f6d64584ab1
parent 4128 d38605caf95a7daf02cfd96152b58fb6cacf74ee
child 4130 83ee1d848073950e55c22149e98fc9b7d95634b8
push idunknown
push userunknown
push dateunknown
bugs492170
Bug 492170: fixed a bug in pt_hpux_sendfile_cont caused by a typo ("iov_len" should be "iov_base"). r=nelson. Tag: NSPR_4_7_BRANCH
pr/src/pthreads/ptio.c
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -1013,17 +1013,17 @@ static PRBool pt_hpux_sendfile_cont(pt_C
         op->result.code = -1;
     } else {
         return PR_FALSE;
     }
     if (count != -1 && count < op->nbytes_to_send) {
         if (count < hdtrl[0].iov_len) {
 			/* header not sent */
 
-            hdtrl[0].iov_base = ((char *) hdtrl[0].iov_len) + count;
+            hdtrl[0].iov_base = ((char *) hdtrl[0].iov_base) + count;
             hdtrl[0].iov_len -= count;
 
         } else if (count < (hdtrl[0].iov_len + op->arg3.file_spec.nbytes)) {
 			/* header sent, file not sent */
             PRUint32 file_nbytes_sent = count - hdtrl[0].iov_len;
 
             hdtrl[0].iov_base = NULL;
             hdtrl[0].iov_len = 0;