diff options
author | Peng Wu <alexepico@gmail.com> | 2014-03-13 09:40:48 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-03-13 09:40:48 +0800 |
commit | 6a3fd302f0ca63ce02cda81950987fa0cdbea610 (patch) | |
tree | 4b7c9937188efc0dc1e923dc61ae7611e073162c /src/storage/phrase_index.cpp | |
parent | 740f54eed08e34348b377a33719368a05328e8fa (diff) | |
download | libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.tar.gz libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.tar.xz libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.zip |
fixes fscanf
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r-- | src/storage/phrase_index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index 5fe61c2..cdec42d 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -528,7 +528,7 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){ phrase_token_t cur_token = 0; while (!feof(infile)){ - int num = fscanf(infile, "%s %s %u %ld", + int num = fscanf(infile, "%256s %256s %u %ld", pinyin, phrase, &token, &freq); if (4 != num) |