summaryrefslogtreecommitdiffstats
path: root/source/script-dialog.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2014-07-21 22:22:16 +0200
committerQC <qball@gmpclient.org>2014-07-21 22:22:16 +0200
commit9ecf1e13a7e6ef1789a7b15cb873576d5b9938de (patch)
treee4e05f995c23e6132df89a9999afe42f2cb23c51 /source/script-dialog.c
parentcd4888a5cfc912720f230c3a550526f4428f83b4 (diff)
Small fix for easier scripting.
Diffstat (limited to 'source/script-dialog.c')
-rw-r--r--source/script-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/script-dialog.c b/source/script-dialog.c
index a43234e1..321b7534 100644
--- a/source/script-dialog.c
+++ b/source/script-dialog.c
@@ -108,7 +108,7 @@ char **execute_executor ( ScriptOptions *options, const char *result, unsigned i
{
char **retv = NULL;
char *command;
- if ( asprintf ( &command, "%s %s", options->script_path, result ) > 0 ) {
+ if ( asprintf ( &command, "%s '%s'", options->script_path, result ) > 0 ) {
retv = get_script_output ( command, length );
free ( command );
}