--- mkanthydic/mkdic.c.orig 2004-08-29 04:54:48.000000000 +0900 +++ mkanthydic/mkdic.c 2004-11-27 01:06:54.930846856 +0900 @@ -455,7 +455,8 @@ (strcmp(ye->entries[i-1].word, we->word) || strcmp(ye->entries[i-1].wt, we->wt) || ye->entries[i-1].freq != we->freq)) { - count += fprintf(yomi_entry_out, "%s", we->wt); + fprintf(yomi_entry_out, "%s", we->wt); + count += strlen(we->wt); if (we->freq > 1) { count += fprintf(yomi_entry_out, "*%d", we->freq); } @@ -464,7 +465,8 @@ /* 単語を出力する場所がこの単語のid */ we->offset = count + ye->offset; /* 単語を出力する */ - count += fprintf(yomi_entry_out, "%s", we->word); + fprintf(yomi_entry_out, "%s", we->word); + count += strlen(we->word); } fputc(0, yomi_entry_out);