diff options
author | David Jander <david.jander@protonic.nl> | 2009-04-06 13:01:08 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-04-06 13:01:08 -0400 |
commit | 5f769b73441cf29c05a05c728ab81bdde1fc00b6 (patch) | |
tree | c53c49be5edc34bdbdb8165c762809e15a140008 | |
parent | 843166b033dc0544b9f3cf3c91fc3ae3650bda14 (diff) |
kdrive: Fix segfault in tslib support
-rw-r--r-- | hw/kdrive/linux/tslib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kdrive/linux/tslib.c b/hw/kdrive/linux/tslib.c index 19c8e84b5..59011b0e3 100644 --- a/hw/kdrive/linux/tslib.c +++ b/hw/kdrive/linux/tslib.c @@ -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); |