2212
|
1 |
--- xf86-input-synaptics-1.1.3.orig/tools/synclient.c 2009-08-02 21:04:24.000000000 -0400
|
|
2 |
+++ xf86-input-synaptics-1.1.3/tools/synclient.c 2009-09-10 11:52:09.787558852 -0400
|
1720
|
3 |
@@ -36,6 +36,7 @@
|
|
4 |
#include <sys/time.h>
|
|
5 |
#include <unistd.h>
|
|
6 |
#include <string.h>
|
|
7 |
+#include <strings.h>
|
|
8 |
#include <stddef.h>
|
|
9 |
#include <math.h>
|
|
10 |
|
2212
|
11 |
@@ -258,9 +259,10 @@
|
|
12 |
if (eqp) {
|
|
13 |
int j;
|
|
14 |
int found = 0;
|
|
15 |
- *eqp = 0;
|
|
16 |
+ int len = eqp - cmd;
|
|
17 |
for (j = 0; params[j].name; j++) {
|
|
18 |
- if (strcasecmp(cmd, params[j].name) == 0) {
|
|
19 |
+ if ((strncasecmp(cmd, params[j].name, len) == 0) &&
|
|
20 |
+ (params[j].name[len] == '\0')) {
|
|
21 |
found = 1;
|
|
22 |
break;
|
|
23 |
}
|