Sanitize arguments passed to XLookupString

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1108134 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 5f7766cf7b
commit ba57e8f536

@ -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;
}

Loading…
Cancel
Save