summaryrefslogtreecommitdiff
path: root/user/libwacom/fix-database.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/libwacom/fix-database.patch')
-rw-r--r--user/libwacom/fix-database.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/libwacom/fix-database.patch b/user/libwacom/fix-database.patch
new file mode 100644
index 000000000..d367ca997
--- /dev/null
+++ b/user/libwacom/fix-database.patch
@@ -0,0 +1,15 @@
+https://github.com/linuxwacom/libwacom/issues/85
+
+Awful, cheesy hack.
+
+--- libwacom-0.33/libwacom/libwacom-database.c.old 2019-04-12 03:10:21.000000000 +0000
++++ libwacom-0.33/libwacom/libwacom-database.c 2019-06-01 06:24:56.290159726 +0000
+@@ -152,7 +152,7 @@
+
+ memset(namestr, 0, sizeof(namestr));
+
+- rc = sscanf(str, "%63[^:]:%x:%x:%63c", busstr, vendor_id, product_id, namestr);
++ rc = sscanf(str, "%63[^:]:%x:%x:%63[^\b]", busstr, vendor_id, product_id, namestr);
+ if (rc == 4) {
+ *name = g_strdup(namestr);
+ } else if (rc == 3) {