summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-01-25 12:58:23 +0800
committerPeng Wu <alexepico@gmail.com>2018-01-25 12:58:23 +0800
commitff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a (patch)
tree08a7db240980ab6a8ad99cd523b2bfea72095dea /src/storage/phrase_index.cpp
parent011d3bc3f4f956eac98e98aeb284ef9b085eae19 (diff)
downloadlibpinyin-ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a.tar.gz
libpinyin-ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a.tar.xz
libpinyin-ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a.zip
fixes fscanf usage
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r--src/storage/phrase_index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp
index c4a7286..06b613f 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -527,7 +527,7 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile,
phrase_token_t cur_token = 0;
while (!feof(infile)){
- int num = fscanf(infile, "%256s %256s %u %ld",
+ int num = fscanf(infile, "%255s %255s %u %ld",
pinyin, phrase, &token, &freq);
if (4 != num)