apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/network_io/os2 sendrecv.c
Date Mon, 05 Mar 2001 14:56:13 GMT
bjh         01/03/05 06:56:11

  Modified:    network_io/os2 sendrecv.c
  Log:
  Ooops, that wasn't quite right. Stop counting bytes at nvec.
  
  Revision  Changes    Path
  1.20      +1 -1      apr/network_io/os2/sendrecv.c
  
  Index: sendrecv.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/os2/sendrecv.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- sendrecv.c	2001/03/05 14:51:59	1.19
  +++ sendrecv.c	2001/03/05 14:56:04	1.20
  @@ -145,7 +145,7 @@
       int nv_tosend, total = 0;
   
       /* Make sure writev() only gets fed 64k at a time */
  -    for ( nv_tosend = 0; total + vec[nv_tosend].iov_len < 65536; nv_tosend++ ) {
  +    for ( nv_tosend = 0; nv_tosend < nvec && total + vec[nv_tosend].iov_len
< 65536; nv_tosend++ ) {
           total += vec[nv_tosend].iov_len;
       }
   
  
  
  

Mime
View raw message