diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-06-01 06:31:02 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-06-01 06:31:02 +0000 |
commit | 6f7b06393dc434ca7acc03d11f08e52e1bfe813a (patch) | |
tree | 49522e5b8ed176ea67a42ce2ed0d8623cc23b665 /user/libwacom/fix-database.patch | |
parent | 5ab32da26eab7805e9c718e390e6227fd910a9b8 (diff) | |
download | packages-6f7b06393dc434ca7acc03d11f08e52e1bfe813a.tar.gz packages-6f7b06393dc434ca7acc03d11f08e52e1bfe813a.tar.bz2 packages-6f7b06393dc434ca7acc03d11f08e52e1bfe813a.tar.xz packages-6f7b06393dc434ca7acc03d11f08e52e1bfe813a.zip |
user/libwacom: jingle bells, this patch smells
Diffstat (limited to 'user/libwacom/fix-database.patch')
-rw-r--r-- | user/libwacom/fix-database.patch | 15 |
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) { |