There was an error while loading. Please reload this page.
2 parents b0c5da3 + b4ea507 commit 18d52bfCopy full SHA for 18d52bf
1 file changed
Client/tool_mousemove.c
@@ -107,10 +107,18 @@ int tool_mousemove(int argc, char **argv) {
107
is_wheel = 1;
108
break;
109
case 'x':
110
+ if (i >= 2) {
111
+ show_help();
112
+ return 1;
113
+ }
114
pos[0] = strtol(optarg, NULL, 10);
115
i++;
116
117
case 'y':
118
119
120
121
122
pos[1] = strtol(optarg, NULL, 10);
123
124
@@ -128,6 +136,10 @@ int tool_mousemove(int argc, char **argv) {
128
136
129
137
if (optind < argc) {
130
138
while (optind < argc) {
139
140
141
142
131
143
pos[i] = strtol(argv[optind++], NULL, 10);
132
144
133
145
}
0 commit comments