mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 14:05:51 +02:00
fixed sizeof stuff
This commit is contained in:
parent
227cc94733
commit
e521638027
2
slock.c
2
slock.c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user