mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
- wrong cast, strlen is int
This commit is contained in:
parent
c55eda9f3b
commit
e85a378770
@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user