[ANNOUNCE] xf86-input-acecad 1.2.0
Paul Vojta
vojta at Math.Berkeley.EDU
Mon Apr 30 11:45:53 PDT 2007
On Sun, Apr 29, 2007 at 05:58:12AM +0200, Giuseppe Bilotta wrote:
> Hello all,
>
> since nobody complained about the previous release, I've taken courage. Here's
> my second (and probably last, see below) release of the acecad input driver,
> version 1.2.0.
Just a quick patch:
--- acecad.c 2007-04-28 20:08:18.000000000 -0700
+++ acecad.c.modified 2007-04-30 11:43:18.000000000 -0700
@@ -185,7 +185,7 @@
}
}
-/* Heavily inspired by synpatics/eventcomm.c */
+/* Heavily inspired by synaptics/eventcomm.c */
#define DEV_INPUT_EVENT "/dev/input/event"
#define EV_DEV_NAME_MAXLEN 64
@@ -196,8 +196,8 @@
fd_query_acecad(int fd, char *ace_name) {
char name[256] = "Unknown";
int cmp_at = strlen(ace_name);
- if (cmp_at > 256)
- cmp_at = 256;
+ if (cmp_at > 255)
+ cmp_at = 255;
ioctl(fd, EVIOCGNAME(sizeof(name)), name);
name[cmp_at] = '\0';
if (xf86NameCmp(name, ace_name) == 0)
--Paul Vojta, vojta at math.berkeley.edu
More information about the xorg
mailing list