summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKanru Chen <koster@debian.org.tw>2007-12-03 12:46:45 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-12-03 12:46:50 +0000
commit25d26b55e74b50a2fd0632329cb0bdca017fe8e6 (patch)
tree52b8b1b6a772cd2555d761bed7347b398a6db0a8 /config
parentb037e4a5abb878ad89e7f27c2b6c23004625f6c3 (diff)
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)
Diffstat (limited to 'config')
-rw-r--r--config/hal.c5
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);
}