1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00

fix Bug #13518: comparision of a char* pointer with a string literal

This commit is contained in:
Greg Beaver
2008-03-27 21:31:27 +00:00
parent c8ca9d2275
commit 6ff19e08f4

View 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;