diff --git a/runtime/path_convert/src/path_conv.cpp b/runtime/path_convert/src/path_conv.cpp index 14540c0..e5206f4 100644 --- a/runtime/path_convert/src/path_conv.cpp +++ b/runtime/path_convert/src/path_conv.cpp @@ -551,7 +551,7 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en goto skip_p2w; return POSIX_PATH_LIST; } - } else if (memchr(it2, '=', end - it) == NULL) { + } else if (memchr(it2, '=', end - it2) == NULL) { return SIMPLE_WINDOWS_PATH; } } else if (ch != '.') {