diff options
author | Kanru Chen <koster@debian.org.tw> | 2007-12-03 12:46:45 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-12-05 18:29:54 +0000 |
commit | a8e27a108abeba73b2888da4e0604008f4b02045 (patch) | |
tree | 412d77a1a00a0e12d58723838a476afa6fff29ff /config | |
parent | 2d723bbd0d36f6d7763b4df3298d40720f97fdd0 (diff) |
Config: HAL: Fix XKB option parsing
Actually combine the XKB options into a string, rather than just repeatedly
writing a comma.
Diffstat (limited to 'config')
-rw-r--r-- | config/hal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/hal.c b/config/hal.c index 6bb449d5a..4427deb39 100644 --- a/config/hal.c +++ b/config/hal.c @@ -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); } |