From 6ff19e08f428928744cd9f0c66dfd9bc9a794383 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Thu, 27 Mar 2008 21:31:27 +0000 Subject: [PATCH] fix Bug #13518: comparision of a char* pointer with a string literal --- ext/phar/zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/phar/zip.c b/ext/phar/zip.c index 243b176e22c..a8ef9536ec4 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;