From: Pierre Joye Date: Wed, 6 Sep 2006 17:24:41 +0000 (+0000) Subject: - wrong cast, strlen is int X-Git-Tag: php-5.2.0RC4~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e85a378770b99b6fc9f07650e7074992c3fe3464;p=php - wrong cast, strlen is int --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 403416006a..6c12935ff1 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1273,7 +1273,7 @@ ZIPARCHIVE_METHOD(getArchiveComment) } comment = zip_get_archive_comment(intern, &comment_len, (int)flags); - RETURN_STRINGL((char *)comment, (long)comment_len, 1); + RETURN_STRINGL((char *)comment, comment_len, 1); } /* }}} */ @@ -1360,7 +1360,7 @@ ZIPARCHIVE_METHOD(getCommentName) PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); comment = zip_get_file_comment(intern, sb.index, &comment_len, (int)flags); - RETURN_STRINGL((char *)comment, (long)comment_len, 1); + RETURN_STRINGL((char *)comment, comment_len, 1); } /* }}} */ @@ -1389,7 +1389,7 @@ ZIPARCHIVE_METHOD(getCommentIndex) PHP_ZIP_STAT_INDEX(intern, index, 0, sb); comment = zip_get_file_comment(intern, index, &comment_len, (int)flags); - RETURN_STRINGL((char *)comment, (long)comment_len, 1); + RETURN_STRINGL((char *)comment, comment_len, 1); } /* }}} */