From 5f769b73441cf29c05a05c728ab81bdde1fc00b6 Mon Sep 17 00:00:00 2001 From: David Jander Date: Mon, 6 Apr 2009 13:01:08 -0400 Subject: [PATCH] kdrive: Fix segfault in tslib support --- hw/kdrive/linux/tslib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);