Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
It looks like the real length limit is 247 bytes, not 248 as documented.
  • Loading branch information
weltling committed Jul 11, 2018
1 parent 9026562 commit 9810264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/ioutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9810264

Please sign in to comment.