]> granicus.if.org Git - php/commitdiff
fix Bug #13518: comparision of a char* pointer with a string literal
authorGreg Beaver <cellog@php.net>
Thu, 27 Mar 2008 21:31:27 +0000 (21:31 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 27 Mar 2008 21:31:27 +0000 (21:31 +0000)
ext/phar/zip.c

index 243b176e22c112361a81bee20d9022207f3b7082..a8ef9536ec4d6d0b3b6d9ffa8f6f2a8522bb870a 100644 (file)
@@ -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;