[uim-commit] r149 - trunk/uim

makeinu@freedesktop.org makeinu@freedesktop.org
Thu Jan 6 23:24:44 PST 2005


Author: makeinu
Date: 2005-01-06 23:24:39 -0800 (Thu, 06 Jan 2005)
New Revision: 149

Modified:
   trunk/uim/uim-custom.c
Log:
* uim/uim-custom.c
  - (uim_custom_set): Quote the UCustom_Str type value to bound.
    Now UCustom_Str type value can be saved, but I'm now wondering
    whether the text should be sanitized more strictly or not.


Modified: trunk/uim/uim-custom.c
===================================================================
--- trunk/uim/uim-custom.c	2005-01-07 05:46:50 UTC (rev 148)
+++ trunk/uim/uim-custom.c	2005-01-07 07:24:39 UTC (rev 149)
@@ -700,11 +700,11 @@
 		      custom->symbol, custom->value->as_int);
     break;
   case UCustom_Str:
-    UIM_EVAL_FSTRING2(NULL, "(custom-set! '%s %s)",
+    UIM_EVAL_FSTRING2(NULL, "(custom-set! '%s \"%s\")",
 		      custom->symbol, custom->value->as_str);
     break;
   case UCustom_Pathname:
-    UIM_EVAL_FSTRING2(NULL, "(custom-set! '%s %s)",
+    UIM_EVAL_FSTRING2(NULL, "(custom-set! '%s \"%s\")",
 		      custom->symbol, custom->value->as_pathname);
     break;
   case UCustom_Choice:



More information about the Uim-commit mailing list