summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bz2/bz2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c
index 52810719cc..f4d1665d45 100644
--- a/ext/bz2/bz2.c
+++ b/ext/bz2/bz2.c
@@ -252,7 +252,7 @@ PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper,
#ifdef VIRTUAL_DIR
virtual_filepath_ex(path, &path_copy, NULL);
#else
- path_copy = path;
+ path_copy = (char *)path;
#endif
if (php_check_open_basedir(path_copy)) {