mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Removed checking for minimum line length of 21 characters in the LIRC receiver code
This commit is contained in:
parent
e8406def02
commit
75861a97bc
@ -2665,3 +2665,7 @@ Milan Cvijanovic <elcom_cvijo@hotmail.com>
|
|||||||
|
|
||||||
Frank Neumann <frank.neumann@hp.com>
|
Frank Neumann <frank.neumann@hp.com>
|
||||||
for suggesting to reduce the thread and I/O priority cCuttingThread::Action()
|
for suggesting to reduce the thread and I/O priority cCuttingThread::Action()
|
||||||
|
|
||||||
|
Gerald Dachs <vdr@dachsweb.de>
|
||||||
|
for reporting a problem with checking for minimum line length of 21 characters in
|
||||||
|
the LIRC receiver code
|
||||||
|
4
HISTORY
4
HISTORY
@ -6481,7 +6481,7 @@ Video Disk Recorder Revision History
|
|||||||
from Osama Alrawab). See INSTALL for information on how to turn this on.
|
from Osama Alrawab). See INSTALL for information on how to turn this on.
|
||||||
- Added Arabian language texts (thanks to Osama Alrawab).
|
- Added Arabian language texts (thanks to Osama Alrawab).
|
||||||
|
|
||||||
2011-03-06: Version 1.7.17
|
2011-03-08: Version 1.7.17
|
||||||
|
|
||||||
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
|
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
|
||||||
- Fixed following symbolic links in RemoveFileOrDir() (cont'd) (thanks to
|
- Fixed following symbolic links in RemoveFileOrDir() (cont'd) (thanks to
|
||||||
@ -6549,3 +6549,5 @@ Video Disk Recorder Revision History
|
|||||||
patch from Manuel Reimer).
|
patch from Manuel Reimer).
|
||||||
- Now reducing the thread and I/O priority cCuttingThread::Action() to make the
|
- Now reducing the thread and I/O priority cCuttingThread::Action() to make the
|
||||||
foreground process more responsive (suggested by Frank Neumann).
|
foreground process more responsive (suggested by Frank Neumann).
|
||||||
|
- Removed checking for minimum line length of 21 characters in the LIRC receiver code
|
||||||
|
(reported by Gerald Dachs).
|
||||||
|
5
lirc.c
5
lirc.c
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
|
* 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"
|
#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;
|
int count;
|
||||||
char KeyName[LIRC_KEY_BUF];
|
char KeyName[LIRC_KEY_BUF];
|
||||||
if (sscanf(buf, "%*x %x %29s", &count, KeyName) != 2) { // '29' in '%29s' is LIRC_KEY_BUF-1!
|
if (sscanf(buf, "%*x %x %29s", &count, KeyName) != 2) { // '29' in '%29s' is LIRC_KEY_BUF-1!
|
||||||
|
Loading…
Reference in New Issue
Block a user