summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index eb5e232..1295a33 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -527,7 +527,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type,
/* child */
close (pipeFd[1]);
dup2 (pipeFd[0], fileno (stdin));
- execl (settings->eventCmd, settings->eventCmd, type, NULL);
+ execl (settings->eventCmd, settings->eventCmd, type, (char *) NULL);
BarUiMsg (MSG_ERR, "Cannot start eventcmd. (%s)\n", strerror (errno));
close (pipeFd[0]);
exit (1);