From e5216380276932d7cd5576bac0ee9255b58d2e17 Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Sun, 26 Nov 2006 15:50:18 +0100 Subject: [PATCH] fixed sizeof stuff --- slock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slock.c b/slock.c index 62fcac9..aafc7c0 100644 --- a/slock.c +++ b/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))