PageRenderTime 40ms CodeModel.GetById 36ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/sysutils/v4l-utils/patches/v4l-utils-0.8.3-01-fix_overflow.patch

http://github.com/OpenELEC/OpenELEC.tv
Patch | 12 lines | 11 code | 1 blank | 0 comment | 0 complexity | 581dd9be1ad6a874746d8b8535061885 MD5 | raw file
 1diff -Naur v4l-utils-0.8.3/utils/keytable/keytable.c v4l-utils-0.8.3.patch/utils/keytable/keytable.c
 2--- v4l-utils-0.8.3/utils/keytable/keytable.c	2011-02-09 23:04:27.000000000 +0100
 3+++ v4l-utils-0.8.3.patch/utils/keytable/keytable.c	2011-03-22 22:40:16.957618675 +0100
 4@@ -267,7 +267,7 @@
 5 				perror("value");
 6 		}
 7 
 8-		nextkey->codes[0] = (unsigned) strtol(scancode, NULL, 0);
 9+		nextkey->codes[0] = (unsigned) strtoul(scancode, NULL, 0);
10 		nextkey->codes[1] = (unsigned) value;
11 		nextkey->next = calloc(1, sizeof(*nextkey));
12 		if (!nextkey->next) {