Skip to content

Commit 8ebdb1f

Browse files
committed
Improve fix for #72520
1 parent 7521149 commit 8ebdb1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/zip/zip_stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_D
101101
{
102102
struct zip_stat sb;
103103
const char *path = stream->orig_path;
104-
int path_len = strlen(stream->orig_path);
104+
size_t path_len = strlen(stream->orig_path);
105105
char *file_basename;
106106
size_t file_basename_len;
107107
char file_dirname[MAXPATHLEN];
108108
struct zip *za;
109109
char *fragment;
110-
int fragment_len;
110+
size_t fragment_len;
111111
int err;
112112

113113
fragment = strchr(path, '#');

0 commit comments

Comments
 (0)