Update of /cvsroot/sieve-php/sieve-php
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6899
Modified Files:
sieve-php.lib.php
Log Message:
Fix off-by-one error, closes 1000027
Index: sieve-php.lib.php
===================================================================
RCS file: /cvsroot/sieve-php/sieve-php/sieve-php.lib.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sieve-php.lib.php 18 Dec 2003 13:23:19 -0000 1.5
--- sieve-php.lib.php 6 Dec 2004 17:43:13 -0000 1.6
***************
*** 138,142 ****
$this->err_recv = strlen($this->line);
! while($this->err_recv < $this->err_len){
//print "<br>Trying to receive ".($this->err_len-$this->err_recv)." bytes for result<br>";
$this->line = fgets($this->fp, ($this->err_len-$this->err_recv));
--- 138,142 ----
$this->err_recv = strlen($this->line);
! while($this->err_recv < $this->err_len-1){
//print "<br>Trying to receive ".($this->err_len-$this->err_recv)." bytes for result<br>";
$this->line = fgets($this->fp, ($this->err_len-$this->err_recv));
|