[uim-commit] r326 - trunk/uim
ekato@freedesktop.org
ekato@freedesktop.org
Tue Jan 18 05:25:02 PST 2005
Author: ekato
Date: 2005-01-18 05:24:58 -0800 (Tue, 18 Jan 2005)
New Revision: 326
Modified:
trunk/uim/skk-dic.c
Log:
* uim/skk-dic.c (skk_lib_remove_annotation) : Revert r325 change
to use uim_scm_c_str() because this function may modify the
string.
Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c 2005-01-18 13:03:18 UTC (rev 325)
+++ trunk/uim/skk-dic.c 2005-01-18 13:24:58 UTC (rev 326)
@@ -1494,7 +1494,7 @@
if (okuri_ != uim_scm_null_list()) {
struct skk_line *sl;
- char *okuri;
+ const char *okuri;
int found = 0;
okuri = uim_scm_refer_c_str(okuri_);
@@ -1552,7 +1552,8 @@
skk_learn_word(uim_lisp head_, uim_lisp okuri_head_, uim_lisp okuri_, uim_lisp word_)
{
struct skk_cand_array *ca;
- char *word, *tmp;
+ char *word;
+ const char *tmp;
tmp = uim_scm_refer_c_str(word_);
word = sanitize_word(tmp);
@@ -2012,13 +2013,14 @@
static uim_lisp
skk_lib_remove_annotation(uim_lisp str_)
{
- char *str = uim_scm_refer_c_str(str_);
+ char *str = uim_scm_c_str(str_);
char *sep = strrchr(str, ';');
uim_lisp res;
if (sep) {
*sep = 0;
}
res = uim_scm_make_str(str);
+ free(str);
return res;
}
More information about the Uim-commit
mailing list