From ee0951d2b599b3ae99abe7f02e997d3f835c34df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 11 Aug 2005 12:34:24 +0000 Subject: [PATCH] Fixed missing escaping of spaces in command names. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13931 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../add-ons/kernel/file_systems/fs_shell/fs_shell_command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/add-ons/kernel/file_systems/fs_shell/fs_shell_command.cpp b/src/tests/add-ons/kernel/file_systems/fs_shell/fs_shell_command.cpp index e75922ab37..e97e607d5a 100644 --- a/src/tests/add-ons/kernel/file_systems/fs_shell/fs_shell_command.cpp +++ b/src/tests/add-ons/kernel/file_systems/fs_shell/fs_shell_command.cpp @@ -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++;