summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vmwarectrl/vmwarectrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vmwarectrl/vmwarectrl.c b/vmwarectrl/vmwarectrl.c
index 6c45095..38ded50 100644
--- a/vmwarectrl/vmwarectrl.c
+++ b/vmwarectrl/vmwarectrl.c
@@ -30,7 +30,7 @@ main (int argc, char **argv)
exit(EXIT_FAILURE);
}
- if (argc == 2) {
+ if (argc >= 2) {
if (strcmp(argv[1], "setres") == 0) {
int x, y;
if (argc < 4) {
@@ -38,8 +38,8 @@ main (int argc, char **argv)
exit(EXIT_FAILURE);
}
- x = atoi(argv[1]);
- y = atoi(argv[2]);
+ x = atoi(argv[2]);
+ y = atoi(argv[3]);
if (VMwareCtrl_SetRes(dpy, screen, x, y)) {
printf("Set Res was successful\n");