[uim-commit] r311 - trunk/uim
makeinu@freedesktop.org
makeinu@freedesktop.org
Mon Jan 17 02:23:07 PST 2005
Author: makeinu
Date: 2005-01-17 02:23:04 -0800 (Mon, 17 Jan 2005)
New Revision: 311
Modified:
trunk/uim/uim-custom.c
Log:
* uim/uim-custom.c
- (extract_key_literal): Quote UCustomKey_Regular type value.
Modified: trunk/uim/uim-custom.c
===================================================================
--- trunk/uim/uim-custom.c 2005-01-17 09:55:26 UTC (rev 310)
+++ trunk/uim/uim-custom.c 2005-01-17 10:23:04 UTC (rev 311)
@@ -439,9 +439,16 @@
switch (custom_key->type) {
case UCustomKey_Regular:
- UIM_EVAL_FSTRING1(NULL, "\"%s\"", custom_key->literal);
- literal = uim_scm_c_str(uim_scm_return_value());
+ {
+ int len = strlen(custom_key->literal);
+
+ literal = malloc(len + 2 + 1);
+ literal[0] = '"';
+ strcpy(literal + 1, custom_key->literal);
+ literal[len + 1] = '"';
+ literal[len + 2] = '\0';
break;
+ }
case UCustomKey_Reference:
literal = strdup(custom_key->literal);
break;
More information about the Uim-commit
mailing list