cvs: pecl /phar zip.c

From: Date: Thu, 27 Mar 2008 21:31:26 +0000
Subject: cvs: pecl /phar zip.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-10090@lists.php.net to get a copy of this message
cellog Thu Mar 27 21:31:26 2008 UTC Modified files: /pecl/phar zip.c Log: fix Bug #13518: comparision of a char* pointer with a string literal http://cvs.php.net/viewvc.cgi/pecl/phar/zip.c?r1=1.24&r2=1.25&diff_format=u Index: pecl/phar/zip.c diff -u pecl/phar/zip.c:1.24 pecl/phar/zip.c:1.25 --- pecl/phar/zip.c:1.24 Sat Mar 22 22:11:48 2008 +++ pecl/phar/zip.c Thu Mar 27 21:31:26 2008 @@ -30,7 +30,7 @@ return FAILURE; } /* clean up header for big-endian systems */ - if (h.header.tag != "nu") { + if (h.header.tag[0] != 'n' || h.header.tag[1] != 'u') { /* skip to next header */ php_stream_seek(fp, h.header.size, SEEK_CUR); len -= h.header.size + 4;

« previous php.pecl.cvs (#10090) next »