blob: 8543f7254a95bc61422b44557c5580435ad07774 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- ksystraycmd/main.cpp (revision 572102)
+++ ksystraycmd/main.cpp (revision 572103)
@@ -5,6 +5,7 @@
#include <kcmdlineargs.h>
#include <kdebug.h>
#include <klocale.h>
+#include <kprocess.h>
#include "ksystraycmd.h"
@@ -94,7 +95,7 @@ int main( int argc, char *argv[] )
// Read the command
QString command;
for ( int i = 0; i < args->count(); i++ )
- command += QCString( args->arg(i) ) + " ";
+ command += KProcess::quote(QString::fromLocal8Bit( args->arg(i) )) + " ";
if ( !command.isEmpty() )
cmd.setCommand( command );
|