]> granicus.if.org Git - php/commitdiff
correct last commit (comparison of "nu" in wrong order)
authorGreg Beaver <cellog@php.net>
Fri, 28 Mar 2008 21:03:29 +0000 (21:03 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 28 Mar 2008 21:03:29 +0000 (21:03 +0000)
ext/phar/zip.c

index a8ef9536ec4d6d0b3b6d9ffa8f6f2a8522bb870a..0d307242e53ecf358b7ca28dc5d17c2c0f530bac 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[0] != 'n' || h.header.tag[1] != 'u') {
+               if (h.header.tag[0] != 'u' || h.header.tag[1] != 'n') {
                        /* skip to next header */
                        php_stream_seek(fp, h.header.size, SEEK_CUR);
                        len -= h.header.size + 4;