src/windows/bin/cmdtoargs.c

Print this page

        

@@ -102,10 +102,16 @@
             }
             break;
 
         case ' ':
         case '\t':
+            if (prev == '\\') {
+                for (i = 0 ; i < slashes; i++) {
+                   *dest++ = prev;
+
+                }
+            }
             if (quotes % 2 == 1) {
                 *dest++ = ch;
             } else {
                 separator = JNI_TRUE;
             }