diff options
Diffstat (limited to 'app-i18n/anthy/files/anthy-mkdic-gcc34.patch')
-rw-r--r-- | app-i18n/anthy/files/anthy-mkdic-gcc34.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-i18n/anthy/files/anthy-mkdic-gcc34.patch b/app-i18n/anthy/files/anthy-mkdic-gcc34.patch new file mode 100644 index 000000000000..b18c86893a94 --- /dev/null +++ b/app-i18n/anthy/files/anthy-mkdic-gcc34.patch @@ -0,0 +1,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);
\ No newline at end of file |