mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fix condition
It looks like the real length limit is 247 bytes, not 248 as documented.
This commit is contained in:
parent
9026562c79
commit
98102648cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user