[uim-commit] r395 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Sat Jan 29 23:07:37 PST 2005


Author: ekato
Date: 2005-01-29 23:07:34 -0800 (Sat, 29 Jan 2005)
New Revision: 395

Modified:
   trunk/uim/skk-dic.c
Log:
 * uim/skk-dic.c (skk_eval_candidate) : Add simple sanity check.


Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c	2005-01-30 06:45:43 UTC (rev 394)
+++ trunk/uim/skk-dic.c	2005-01-30 07:07:34 UTC (rev 395)
@@ -2131,12 +2131,12 @@
   cand = uim_scm_refer_c_str(str_);
 
   /* eval concat only for now */
-  if ((p = strstr(cand, "(concat")) == NULL)
+  if ((p = strstr(cand, "(concat \"")) == NULL)
     return str_;
 
   /* check close paren */
   q = strrchr(p, ')');
-  if (!q)
+  if (!q || (strstr(p, "\")") == NULL))
     return str_;
 
   /* ignore make-string */



More information about the Uim-commit mailing list