fixed sizeof stuff

This commit is contained in:
arg@mig29 2006-11-26 15:50:18 +01:00
parent 227cc94733
commit e521638027

View File

@ -102,7 +102,7 @@ main(int argc, char **argv) {
while(running && !XNextEvent(dpy, &ev))
if(ev.type == KeyPress) {
buf[0] = 0;
num = XLookupString(&ev.xkey, buf, sizeof(buf), &ksym, 0);
num = XLookupString(&ev.xkey, buf, sizeof buf, &ksym, 0);
if(IsFunctionKey(ksym) || IsKeypadKey(ksym)
|| IsMiscFunctionKey(ksym) || IsPFKey(ksym)
|| IsPrivateKeypadKey(ksym))