Fixed handling of PATH command with spaces.
diff --git a/programs/wcmd/builtins.c b/programs/wcmd/builtins.c
index a06c576..1ee1faa 100644
--- a/programs/wcmd/builtins.c
+++ b/programs/wcmd/builtins.c
@@ -672,7 +672,7 @@
* Set/Show the path environment variable
*/
-void WCMD_setshow_path () {
+void WCMD_setshow_path (char *command) {
char string[1024];
DWORD status;
@@ -687,7 +687,7 @@
}
}
else {
- status = SetEnvironmentVariable ("PATH", param1);
+ status = SetEnvironmentVariable ("PATH", command);
if (!status) WCMD_print_error();
}
}