summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2006-09-06 17:24:41 +0000
committerPierre Joye <pajoye@php.net>2006-09-06 17:24:41 +0000
commite85a378770b99b6fc9f07650e7074992c3fe3464 (patch)
treef71f3e666d0e1fcfb173e2492261db6090a9dca4 /ext/zip/php_zip.c
parentc55eda9f3b0d0b26b5e902d62a6ff9ea07d798dc (diff)
downloadphp-git-e85a378770b99b6fc9f07650e7074992c3fe3464.tar.gz
- wrong cast, strlen is int
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c6
1 files changed, 3 insertions, 3 deletions
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);
}
/* }}} */