Config: HAL: Fix XKB option parsing
Actually combine the XKB options into a string, rather than just repeatedly writing a comma. (cherry picked from commit da893908feb2dcf7c22420b3426ab3ac65c7ca99)
This commit is contained in:
parent
b037e4a5ab
commit
25d26b55e7
@ -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