From 323af30d68e0c8ab7b1797e10c2f8a71d31bc411 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Thu, 12 Sep 2019 14:27:39 -0700 Subject: [PATCH] Replaced execlp() with execl() as a path search is not required --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 161f8cf..aecebc0 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -417,7 +417,7 @@ static void execute_action(char* mode, const gchar* cmd) { free(cache_path); if(strcmp(mode, "run") == 0) { - execlp(cmd, cmd, NULL); + execl(cmd, cmd, NULL); fprintf(stderr, "%s cannot be executed\n", cmd); exit(errno); } else if(strcmp(mode, "dmenu") == 0) {