[uim-commit] r2630 - trunk/uim
ekato at freedesktop.org
ekato at freedesktop.org
Sat Dec 17 04:44:37 PST 2005
Author: ekato
Date: 2005-12-17 04:44:32 -0800 (Sat, 17 Dec 2005)
New Revision: 2630
Modified:
trunk/uim/skk.c
Log:
* uim/skk.c (look_get_top_word) : Don't pass string which contains
other than alphabet character to look_popen().
(look_get_comp) : Ditto.
Modified: trunk/uim/skk.c
===================================================================
--- trunk/uim/skk.c 2005-12-17 11:19:27 UTC (rev 2629)
+++ trunk/uim/skk.c 2005-12-17 12:44:32 UTC (rev 2630)
@@ -3362,10 +3362,14 @@
{
char buf[512], *p;
FILE *fp;
+ int i = 0;
uim_lisp ret_ = uim_scm_f();
- if (!skk_isalpha(str[0]))
- return ret_;
+ while (str[i] != '\0') {
+ if (!skk_isalpha(str[i]))
+ return ret_;
+ i++;
+ }
fp = look_popen(str);
if (!fp) {
@@ -3394,11 +3398,14 @@
{
char buf[512], *p;
FILE *fp;
- int i, nr_pre, c = 0;
+ int i = 0, nr_pre, c = 0;
int *matched;
- if (!skk_isalpha(str[0]))
- return;
+ while (str[i] != '\0') {
+ if (!skk_isalpha(str[0]))
+ return;
+ i++;
+ }
fp = look_popen(str);
if (!fp) {
More information about the uim-commit
mailing list