summaryrefslogtreecommitdiff
path: root/src/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/todo.c')
-rw-r--r--src/todo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/todo.c b/src/todo.c
index 24bcec6..50180f4 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -469,6 +469,7 @@ void
todo_pipe_item (void)
{
char cmd[BUFSIZ] = "";
+ char const *arg[] = { cmd, NULL };
int pout;
int pid;
FILE *fpout;
@@ -479,7 +480,7 @@ todo_pipe_item (void)
return;
wins_prepare_external ();
- if ((pid = shell_exec (NULL, &pout, cmd)))
+ if ((pid = shell_exec (NULL, &pout, *arg, arg)))
{
fpout = fdopen (pout, "w");