aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2016-11-11 16:00:02 +0200
committerJussi Kukkonen <jussi.kukkonen@intel.com>2016-11-11 16:00:02 +0200
commit4945190005750757e428922731b6b29585d0bd06 (patch)
tree71d6528e10410a42240bfb593303bc2dcfcf50d8
parentc26fc4ba4dab33f08414cb373a20f1ead517fd8a (diff)
downloadmatchbox-window-manager-4945190005750757e428922731b6b29585d0bd06.tar.gz
matchbox-window-manager-4945190005750757e428922731b6b29585d0bd06.tar.bz2
matchbox-window-manager-4945190005750757e428922731b6b29585d0bd06.zip
matchbox-remote: Fix execvp() argument
The second argument is a NULL-terminated array. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-rw-r--r--src/matchbox-remote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/matchbox-remote.c b/src/matchbox-remote.c
index 9f62523..e6cc076 100644
--- a/src/matchbox-remote.c
+++ b/src/matchbox-remote.c
@@ -143,11 +143,13 @@ mbcommand(int cmd_id, char *data) {
/* Check if desktop is running */
if (!XGetSelectionOwner(dpy, desktop_manager_atom))
{
+ char *exec_args[] = { NULL };
+
fprintf(stderr, "Desktop not running, exiting...\n");
switch (fork())
{
case 0:
- execvp ("mbdesktop", NULL);
+ execvp ("mbdesktop", exec_args);
break;
case -1:
fprintf(stderr, "failed to exec mbdesktop");