From e6f611441cfa47c056fc9f79c97acc6f6288d160 Mon Sep 17 00:00:00 2001 From: Alexpux Date: Tue, 20 Oct 2015 09:43:14 +0300 Subject: [PATCH] Fix converting argument looks like -DVAR=str1;c:/path1;str2;c:/path2 --- winsup/cygwin/msys2_path_conv.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winsup/cygwin/msys2_path_conv.cc b/winsup/cygwin/msys2_path_conv.cc index 34c4d26c56..c347bd4cb8 100644 --- a/winsup/cygwin/msys2_path_conv.cc +++ b/winsup/cygwin/msys2_path_conv.cc @@ -410,6 +410,9 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en if (isalpha(*it)) { it += 1; starts_with_minus_alpha = 1; + if (memchr(it, ';', end - it)) { + return WINDOWS_PATH_LIST; + } } }