From 2b6fde2addb455fd8b2e1376ced543d777bb78db Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 13 Mar 2014 09:44:36 +0800 Subject: fixes fscanf --- src/storage/phrase_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/phrase_index.cpp') diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index cb04175..69ac938 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) -- cgit