aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lirc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lirc.c b/src/lirc.c
index 0ad34ca2f..4e7e423d1 100644
--- a/src/lirc.c
+++ b/src/lirc.c
@@ -6,7 +6,9 @@ static int lirc_socket = 0;
int ncmpc_lirc_open()
{
- if ((lirc_socket = lirc_init("ncmpc", 0)) == -1)
+ char prog[] = "ncmpc";
+
+ if ((lirc_socket = lirc_init(prog, 0)) == -1)
return -1;
if (lirc_readconfig(NULL, &lc, NULL)) {