aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/inputdevices.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2016-07-24 15:35:08 -0300
committerLeandro Pereira <leandro@hardinfo.org>2016-07-24 15:35:08 -0300
commiteee1c0a85b02eb968545a41e816b7e74aeeef8d1 (patch)
tree8236e9ca47914548a17d8b90c1ae74f550d6c956 /modules/devices/inputdevices.c
parent579df440be0082f4709d4662a310799652cc33e6 (diff)
Remove "=" from input device names
Diffstat (limited to 'modules/devices/inputdevices.c')
-rw-r--r--modules/devices/inputdevices.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/devices/inputdevices.c b/modules/devices/inputdevices.c
index 5ff415cf..5bd6c214 100644
--- a/modules/devices/inputdevices.c
+++ b/modules/devices/inputdevices.c
@@ -60,7 +60,8 @@ __scan_input_devices(void)
switch (*tmp) {
case 'N':
- name = g_strdup(tmp + strlen("N: Name="));
+ tmp = strreplacechr(tmp + strlen("N: Name="), "=", ':');
+ name = g_strdup(tmp);
remove_quotes(name);
break;
case 'P':