summaryrefslogblamecommitdiff
path: root/user/libwacom/fix-database.patch
blob: d367ca997ae346523e414b8ebe0597ba265c020c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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) {