kdrive: Fix segfault in tslib support

This commit is contained in:
David Jander 2009-04-06 13:01:08 -04:00 committed by Adam Jackson
parent 843166b033
commit 5f769b7344

View File

@ -114,7 +114,7 @@ TslibEnable (KdPointerInfo *pi)
private->raw_event_hook = NULL;
private->raw_event_closure = NULL;
if (!pi->path) {
pi->path = "/dev/input/touchscreen0";
pi->path = strdup("/dev/input/touchscreen0");
ErrorF("[tslib/TslibEnable] no device path given, trying %s\n", pi->path);
}
private->tsDev = ts_open(pi->path, 0);