From: handa Date: Thu, 7 Apr 2005 11:42:05 +0000 (+0000) Subject: (load_chartable): Fix previous change. X-Git-Tag: REL-1-3-0~345 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=289150206cb0eb3d9e12ee15f2462e5e217ff9cb;p=m17n%2Fm17n-lib.git (load_chartable): Fix previous change. --- diff --git a/src/database.c b/src/database.c index 71bdcd4..f7616e9 100644 --- a/src/database.c +++ b/src/database.c @@ -293,9 +293,9 @@ load_chartable (FILE *fp, MSymbol type) { char *p = buf + i; - while (! isspace (*p)) + while (*p && ! isspace (*p)) { - if (*p == '\\' || p[1] != '\0') + if (*p == '\\' && p[1] != '\0') { memmove (p, p + 1, buf + len - (p + 1)); len--;