Fixing -g option.
This commit is contained in:
parent
ef52905a3f
commit
e43381833b
3
svkbd.c
3
svkbd.c
@ -582,6 +582,9 @@ main(int argc, char *argv[]) {
|
|||||||
isdock = True;
|
isdock = True;
|
||||||
continue;
|
continue;
|
||||||
} else if(!strncmp(argv[i], "-g", 2)) {
|
} else if(!strncmp(argv[i], "-g", 2)) {
|
||||||
|
if(i >= argc - 1)
|
||||||
|
continue;
|
||||||
|
|
||||||
bitm = XParseGeometry(argv[i+1], &xr, &yr, &wr, &hr);
|
bitm = XParseGeometry(argv[i+1], &xr, &yr, &wr, &hr);
|
||||||
if(bitm & XValue)
|
if(bitm & XValue)
|
||||||
wx = xr;
|
wx = xr;
|
||||||
|
Loading…
Reference in New Issue
Block a user