--- src/skklib.c.orig 2004-06-02 21:42:08.000000000 +0900 +++ src/skklib.c 2004-06-02 22:08:39.000000000 +0900 @@ -216,8 +216,10 @@ for (p = buf; (*p = fgetc(f)) != '/' && !feof(f); p++); *p = '\0'; citem = _NEW2(CandList,strlen(buf)); - if (!citem) + if (!citem) { + while ((c = fgetc(f)) != '\n' && !feof(f)); break; + } citem->okuri = NULL; citem->nextcand = NULL; citem->prevcand = citem2; @@ -252,8 +254,10 @@ (*p = fgetc(f)) != '/' && !feof(f); p++); *p = '\0'; citem = _NEW2(CandList,strlen(buf)); - if (!citem) + if (!citem) { + while ((c = fgetc(f)) != '\n' && !feof(f)); break; + } citem->okuri = NULL; citem->nextcand = NULL; citem->prevcand = citem2;