Config: HAL: Fix XKB option parsing
Actually combine the XKB options into a string, rather than just repeatedly writing a comma.
This commit is contained in:
parent
2d723bbd0d
commit
a8e27a108a
|
@ -134,10 +134,11 @@ get_prop_string_array(LibHalContext *hal_ctx, const char *udi, const char *prop)
|
||||||
|
|
||||||
str = ret;
|
str = ret;
|
||||||
for (i = 0; props[i]; i++) {
|
for (i = 0; props[i]; i++) {
|
||||||
str = strcpy(str, props[i]);
|
strcpy(str, props[i]);
|
||||||
|
str += strlen(props[i]);
|
||||||
*str++ = ',';
|
*str++ = ',';
|
||||||
}
|
}
|
||||||
*str = '\0';
|
*(str-1) = '\0';
|
||||||
|
|
||||||
libhal_free_string_array(props);
|
libhal_free_string_array(props);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user