Skip to content

Commit 9810264

Browse files
committed
Fix condition
It looks like the real length limit is 247 bytes, not 248 as documented.
1 parent 9026562 commit 9810264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/ioutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ PW32IO int php_win32_ioutil_mkdir(const char *path, mode_t mode)
311311
int ret = 0;
312312
DWORD err = 0;
313313

314-
if (pathw_len < _MAX_PATH && pathw_len > _MAX_PATH - 12) {
314+
if (pathw_len < _MAX_PATH && pathw_len >= _MAX_PATH - 12) {
315315
/* Special case here. From the doc:
316316
317317
"When using an API to create a directory, the specified path cannot be

0 commit comments

Comments
 (0)