From c1c5562770c8fae3b5d6400a039e4798ab3350be Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 22 Mar 2011 22:52:29 +0100 Subject: [PATCH] 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 --- .../patches/v4l-utils-0.8.3-01-fix_overflow.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/sysutils/v4l-utils/patches/v4l-utils-0.8.3-01-fix_overflow.patch diff --git a/packages/sysutils/v4l-utils/patches/v4l-utils-0.8.3-01-fix_overflow.patch b/packages/sysutils/v4l-utils/patches/v4l-utils-0.8.3-01-fix_overflow.patch new file mode 100644 index 0000000000..ca933de490 --- /dev/null +++ b/packages/sysutils/v4l-utils/patches/v4l-utils-0.8.3-01-fix_overflow.patch @@ -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) {