unix: prevent uv__make_subdirs_p buffer overflow

This commit is contained in:
Levent Kaya 2026-03-17 15:07:04 +03:00
parent 5ebb71d8fb
commit f84afb7cc5

View File

@ -523,7 +523,6 @@ static int uv__make_subdirs_p(const char *filename) {
int rc = 0;
size_t cmd_len;
ptrdiff_t dir_part_len;
/* Strip off the monitor file name */
p = strrchr(filename, '/');