summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-22 14:46:45 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-22 14:46:45 +0200
commit37ed2c31e710c598e66bc602be18e893d216d48f (patch)
treeef32d3a87c3c47483acafc2dcf0742a6b4d718ef /remote.c
parent668606c38c082a815d9058b0c0d71bceec762110 (diff)
downloadvdr-37ed2c31e710c598e66bc602be18e893d216d48f.tar.gz
vdr-37ed2c31e710c598e66bc602be18e893d216d48f.tar.bz2
Increased the buffer for key names received from LIRC
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index 94024386..16a1412d 100644
--- a/remote.c
+++ b/remote.c
@@ -6,7 +6,7 @@
*
* Ported to LIRC by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: remote.c 1.21 2001/02/04 19:17:59 kls Exp $
+ * $Id: remote.c 1.22 2001/07/22 14:43:45 kls Exp $
*/
#include "remote.h"
@@ -439,7 +439,7 @@ void cRcIoLIRC::Action(void)
if (cFile::FileReady(f, REPEATLIMIT) && read(f, buf, sizeof(buf)) > 21) {
if (!receivedData) { // only accept new data the previous data has been fetched
int count;
- sscanf(buf, "%*x %x %7s", &count, LastKeyName); // '7' in '%7s' is LIRC_KEY_BUF-1!
+ sscanf(buf, "%*x %x %29s", &count, LastKeyName); // '29' in '%29s' is LIRC_KEY_BUF-1!
int Now = time_ms();
if (count == 0) {
strcpy(keyName, LastKeyName);