com php-src: Fix condition: win32/ioutil.c

From: Date: Wed, 11 Jul 2018 11:09:20 +0000
Subject: com php-src: Fix condition: win32/ioutil.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102519@lists.php.net to get a copy of this message
Commit: 98102648cb8a86facd025adefbf1dafc73537750 Author: Anatol Belski <ab@php.net> Wed, 11 Jul 2018 13:09:20 +0200 Parents: 9026562c7995977916e142af134b68a766898461 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=98102648cb8a86facd025adefbf1dafc73537750 Log: Fix condition It looks like the real length limit is 247 bytes, not 248 as documented. Changed paths: M win32/ioutil.c Diff: diff --git a/win32/ioutil.c b/win32/ioutil.c index b9131dc..d9c1956 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -311,7 +311,7 @@ PW32IO int php_win32_ioutil_mkdir(const char *path, mode_t mode) int ret = 0; DWORD err = 0; - if (pathw_len < _MAX_PATH && pathw_len > _MAX_PATH - 12) { + if (pathw_len < _MAX_PATH && pathw_len >= _MAX_PATH - 12) { /* Special case here. From the doc: "When using an API to create a directory, the specified path cannot be

« previous php.cvs (#102519) next »