com php-src: Fix for a previous commit. i read it as size_t, notssize_t.: sapi/litespeed/lsapilib.c

From: Date: Sun, 01 Feb 2015 08:02:25 +0000
Subject: com php-src: Fix for a previous commit. i read it as size_t, notssize_t.: sapi/litespeed/lsapilib.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84539@lists.php.net to get a copy of this message
Commit: d492bc8b6bcb42cef52c97956097abc9bec19b2f Author: Joshua Rogers <git@internot.info> Sun, 1 Feb 2015 19:02:25 +1100 Parents: eba0e0348e972219675e48356bd5e74dacb04522 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d492bc8b6bcb42cef52c97956097abc9bec19b2f Log: Fix for a previous commit. i read it as size_t, notssize_t. Changed paths: M sapi/litespeed/lsapilib.c Diff: diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 7d9912a..2191d7f 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -1449,9 +1449,9 @@ int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, in { len = pReq->m_bufRead - pReq->m_bufProcessed; - if ( len == 0 ) + if ( len <= 0 ) { - if ( (len = readBodyToReqBuf( pReq )) == 0 ) + if ( (len = readBodyToReqBuf( pReq )) <= 0 ) { *getLF = 1; break; @@ -1517,7 +1517,7 @@ ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) pBuf += len; bufLen -= len; } - else if ( len == 0 ) + else if ( len <= 0 ) { if ( !total) return -1;

« previous php.cvs (#84539) next »