From: Marcus Better <marcus@better.se>
Subject: fix off-by-one error in input-kbd
Bug-Debian: http://bugs.debian.org/388677
Forwarded: no

---
Index: input-utils-0.0.20051128/input-kbd.c
===================================================================
--- input-utils-0.0.20051128.orig/input-kbd.c	2006-09-22 10:40:50.000000000 +0200
+++ input-utils-0.0.20051128/input-kbd.c	2006-09-22 10:41:08.000000000 +0200
@@ -36,7 +36,6 @@
 		entry.keycode  = KEY_RESERVED;
 		rc = ioctl(fd, EVIOCGKEYCODE, &entry);
 		if (rc < 0) {
-			map->size--;
 			break;
 		}
 		if (map->size >= map->alloc) {
