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:
Kanru Chen 2007-12-03 12:46:45 +00:00 committed by Daniel Stone
parent 2d723bbd0d
commit a8e27a108a

View File

@ -134,10 +134,11 @@ get_prop_string_array(LibHalContext *hal_ctx, const char *udi, const char *prop)
str = ret;
for (i = 0; props[i]; i++) {
str = strcpy(str, props[i]);
strcpy(str, props[i]);
str += strlen(props[i]);
*str++ = ',';
}
*str = '\0';
*(str-1) = '\0';
libhal_free_string_array(props);
}