From 289150206cb0eb3d9e12ee15f2462e5e217ff9cb Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 7 Apr 2005 11:42:05 +0000 Subject: [PATCH] (load_chartable): Fix previous change. --- src/database.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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--; -- 1.7.10.4