File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1510,7 +1510,7 @@ static ZIPARCHIVE_METHOD(open)
1510
1510
int filename_len ;
1511
1511
int err = 0 ;
1512
1512
long flags = 0 ;
1513
- char resolved_path [ MAXPATHLEN ] ;
1513
+ char * resolved_path ;
1514
1514
1515
1515
zval * this = getThis ();
1516
1516
ze_zip_object * ze_obj = NULL ;
@@ -1533,7 +1533,7 @@ static ZIPARCHIVE_METHOD(open)
1533
1533
RETURN_FALSE ;
1534
1534
}
1535
1535
1536
- if (!expand_filepath (filename , resolved_path TSRMLS_CC )) {
1536
+ if (!( resolved_path = expand_filepath (filename , NULL TSRMLS_CC ) )) {
1537
1537
RETURN_FALSE ;
1538
1538
}
1539
1539
@@ -1554,7 +1554,7 @@ static ZIPARCHIVE_METHOD(open)
1554
1554
if (!intern || err ) {
1555
1555
RETURN_LONG ((long )err );
1556
1556
}
1557
- ze_obj -> filename = estrdup ( resolved_path ) ;
1557
+ ze_obj -> filename = resolved_path ;
1558
1558
ze_obj -> filename_len = strlen (resolved_path );
1559
1559
ze_obj -> za = intern ;
1560
1560
RETURN_TRUE ;
You can’t perform that action at this time.
0 commit comments