diff options
author | Max Kellermann <max@duempel.org> | 2008-11-07 08:16:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-07 08:16:46 +0100 |
commit | 1203f4f8e6f18ef3a4cd1dcb0287ca1a889b3d4b (patch) | |
tree | 13a7f9bb40047a66293b0636040b6ea60db561f1 /src/lirc.c | |
parent | d88a1718bbca660e13ad60f8f1aec6084fcf7788 (diff) | |
download | mpd-1203f4f8e6f18ef3a4cd1dcb0287ca1a889b3d4b.tar.gz mpd-1203f4f8e6f18ef3a4cd1dcb0287ca1a889b3d4b.tar.xz mpd-1203f4f8e6f18ef3a4cd1dcb0287ca1a889b3d4b.zip |
lirc: pass writable string to lirc_init()
The "prog" argument of lirc_init() expects a non-const string.
Pass a local string variable.
Diffstat (limited to '')
-rw-r--r-- | src/lirc.c | 4 |
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)) { |