aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-02 10:17:36 +0200
committermarha <marha@users.sourceforge.net>2012-05-02 10:17:36 +0200
commitb93a9b44b79073494f2840a13aa58a8972e3dd22 (patch)
tree18e172e0d7dbe6cbb41792b048d7c045ffae5d38 /xorg-server
parent2982c44f1569e229d274150a362df58f17b816d9 (diff)
downloadvcxsrv-b93a9b44b79073494f2840a13aa58a8972e3dd22.tar.gz
vcxsrv-b93a9b44b79073494f2840a13aa58a8972e3dd22.tar.bz2
vcxsrv-b93a9b44b79073494f2840a13aa58a8972e3dd22.zip
Solved overflow problem: last can have the value 256
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/xkb/XKBMisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/xkb/XKBMisc.c b/xorg-server/xkb/XKBMisc.c
index 6abd1d11a..6280637d6 100644
--- a/xorg-server/xkb/XKBMisc.c
+++ b/xorg-server/xkb/XKBMisc.c
@@ -330,7 +330,7 @@ _XkbFindMatchingInterp(XkbDescPtr xkb,
static void
_XkbAddKeyChange(KeyCode *pFirst, unsigned char *pNum, KeyCode newKey)
{
- KeyCode last;
+ int last;
last = (*pFirst) + (*pNum);
if (newKey < *pFirst) {