Author: ek.kato
Date: Sun Mar 9 09:30:07 2008
New Revision: 5288
Modified:
trunk/scm/wnn-custom.scm
trunk/uim/wnnlib.c
Log:
* uim/wnnlib.c (jcGetCandidate) : Fix calling wstrncpy().
* scm/wnn-custom.scm (wnn-rcfile) : Change custom type as
pathname.
Modified: trunk/scm/wnn-custom.scm
==============================================================================
--- trunk/scm/wnn-custom.scm (original)
+++ trunk/scm/wnn-custom.scm Sun Mar 9 09:30:07 2008
@@ -321,7 +321,7 @@
(define-custom 'wnn-rcfile ""
'(wnn-advanced wnnserver)
- '(string ".*")
+ '(pathname regular-file)
(N_ "Wnn resource file")
(N_ "long description will be here."))
Modified: trunk/uim/wnnlib.c
==============================================================================
--- trunk/uim/wnnlib.c (original)
+++ trunk/uim/wnnlib.c Sun Mar 9 09:30:07 2008
@@ -2940,7 +2940,7 @@
/* $BJ8;zNs$r%3%T!<(B */
ki2_jl_get_zenkouho_kanji(buf->wnn, n, tmp, CL_BUFSZ);
tmp[CL_BUFSZ - 1] = 0;
- wstrncpy(candstr, tmp, len);
+ wstrncpy(candstr, tmp, len / sizeof(wchar));
return 0;
}