From e43381833b3af219c3e126f1ee6283668e303cea Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Wed, 19 Oct 2011 10:49:23 +0200 Subject: [PATCH] Fixing -g option. --- svkbd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svkbd.c b/svkbd.c index 23840b9..0634805 100644 --- a/svkbd.c +++ b/svkbd.c @@ -582,6 +582,9 @@ main(int argc, char *argv[]) { isdock = True; continue; } else if(!strncmp(argv[i], "-g", 2)) { + if(i >= argc - 1) + continue; + bitm = XParseGeometry(argv[i+1], &xr, &yr, &wr, &hr); if(bitm & XValue) wx = xr;