Bug 492170: fixed a bug in pt_hpux_sendfile_cont caused by a typo
authorwtc%google.com
Sun, 10 May 2009 03:07:02 +0000
changeset 4112 21798bb42538b510a0eef2e4aeef2b2b6ef69442
parent 4111 af2eb0c333bad85be7623faecbe859f5f86274c1
child 4113 5ef8599ed2a863ceb85dffa13c2dcf7ed7c1acd2
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.
pr/src/pthreads/ptio.c
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -1012,17 +1012,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;