We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba5df1c commit a51cb39Copy full SHA for a51cb39
win32/ioutil.c
@@ -521,7 +521,7 @@ PW32IO php_win32_ioutil_normalization_result php_win32_ioutil_normalize_path_w(w
521
return PHP_WIN32_IOUTIL_NORM_FAIL;
522
}
523
524
- while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && idx - *buf <= len) {
+ while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && (size_t)(idx - *buf) <= len) {
525
*pos = PHP_WIN32_IOUTIL_DEFAULT_SLASHW;
526
idx = pos++;
527
0 commit comments