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:
Axel Dörfler 2005-08-11 12:34:24 +00:00
parent acdf6df22c
commit ee0951d2b5

View File

@ -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++;