From e85a378770b99b6fc9f07650e7074992c3fe3464 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 6 Sep 2006 17:24:41 +0000 Subject: [PATCH] - wrong cast, strlen is int --- ext/zip/php_zip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 403416006a5..6c12935ff1f 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); } /* }}} */