summaryrefslogtreecommitdiff
path: root/lirc.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-03-08 15:38:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2011-03-08 15:38:58 +0100
commit75861a97bce2baf43f63feb551505d187cd55bbd (patch)
treef573a4e9c5b3d03cf81df4894123a0ecf709f644 /lirc.c
parente8406def0265747e484e2689cd5d26bee23ec3b0 (diff)
downloadvdr-75861a97bce2baf43f63feb551505d187cd55bbd.tar.gz
vdr-75861a97bce2baf43f63feb551505d187cd55bbd.tar.bz2
Removed checking for minimum line length of 21 characters in the LIRC receiver code
Diffstat (limited to 'lirc.c')
-rw-r--r--lirc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lirc.c b/lirc.c
index c4838b16..e3b68db9 100644
--- a/lirc.c
+++ b/lirc.c
@@ -6,7 +6,7 @@
*
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: lirc.c 1.15 2006/05/28 08:48:13 kls Exp $
+ * $Id: lirc.c 2.1 2011/03/08 15:35:13 kls Exp $
*/
#include "lirc.h"
@@ -86,7 +86,8 @@ void cLircRemote::Action(void)
}
}
- if (ready && ret > 21) {
+ if (ready && ret > 0) {
+ buf[ret - 1] = 0;
int count;
char KeyName[LIRC_KEY_BUF];
if (sscanf(buf, "%*x %x %29s", &count, KeyName) != 2) { // '29' in '%29s' is LIRC_KEY_BUF-1!