From: Greg Beaver Date: Thu, 27 Mar 2008 21:31:27 +0000 (+0000) Subject: fix Bug #13518: comparision of a char* pointer with a string literal X-Git-Tag: RELEASE_2_0_0b1~540 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ff19e08f428928744cd9f0c66dfd9bc9a794383;p=php fix Bug #13518: comparision of a char* pointer with a string literal --- diff --git a/ext/phar/zip.c b/ext/phar/zip.c index 243b176e22..a8ef9536ec 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -30,7 +30,7 @@ static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_ui 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;