Fixed missing escaping of spaces in command names.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13931 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
acdf6df22c
commit
ee0951d2b5
@ -34,7 +34,7 @@ prepare_command_string(const char *const *argv, int argc, char *buffer,
|
||||
add_char(buffer, bufferSize, ' ');
|
||||
|
||||
while (*arg) {
|
||||
if (strchr("", *arg))
|
||||
if (strchr(" ", *arg))
|
||||
add_char(buffer, bufferSize, '\\');
|
||||
add_char(buffer, bufferSize, *arg);
|
||||
arg++;
|
||||
|
Loading…
Reference in New Issue
Block a user