v4l-utils: add patch to fix an overflow so imon MCE remotes should work after loding ir-keytable, thanks much to nektarios

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-03-22 22:52:29 +01:00
parent d43dbbfbbb
commit c1c5562770

View File

@ -0,0 +1,12 @@
diff -Naur v4l-utils-0.8.3/utils/keytable/keytable.c v4l-utils-0.8.3.patch/utils/keytable/keytable.c
--- v4l-utils-0.8.3/utils/keytable/keytable.c 2011-02-09 23:04:27.000000000 +0100
+++ v4l-utils-0.8.3.patch/utils/keytable/keytable.c 2011-03-22 22:40:16.957618675 +0100
@@ -267,7 +267,7 @@
perror("value");
}
- nextkey->codes[0] = (unsigned) strtol(scancode, NULL, 0);
+ nextkey->codes[0] = (unsigned) strtoul(scancode, NULL, 0);
nextkey->codes[1] = (unsigned) value;
nextkey->next = calloc(1, sizeof(*nextkey));
if (!nextkey->next) {