summaryrefslogtreecommitdiffstats
path: root/kdecore
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-27 22:19:44 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-27 22:19:44 +0000
commitba57e8f5363965ebb0a63861914c0a2a97243274 (patch)
tree85ad82076ac5fe5a1434c9a1703a98bbc4d2ba43 /kdecore
parent5f7766cf7bf4d80f8576e6149914d3ee96442e5b (diff)
downloadtdelibs-ba57e8f5363965ebb0a63861914c0a2a97243274.tar.gz
tdelibs-ba57e8f5363965ebb0a63861914c0a2a97243274.zip
Sanitize arguments passed to XLookupString
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1108134 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/kkeyserver_x11.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kdecore/kkeyserver_x11.cpp b/kdecore/kkeyserver_x11.cpp
index bda0feb36..3f3bddc0a 100644
--- a/kdecore/kkeyserver_x11.cpp
+++ b/kdecore/kkeyserver_x11.cpp
@@ -766,7 +766,8 @@ bool codeXToSym( uchar codeX, uint modX, uint& sym )
event.state = modX;
event.keycode = codeX;
- XLookupString( &event, 0, 0, &keySym, 0 );
+ char buffer[64];
+ XLookupString( &event, buffer, 63, &keySym, NULL );
sym = (uint) keySym;
return true;
}