1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- 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);
|