From ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 25 Jan 2018 12:58:23 +0800 Subject: fixes fscanf usage --- src/storage/chewing_large_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/chewing_large_table.cpp') diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp index 8521588..5716c5c 100644 --- a/src/storage/chewing_large_table.cpp +++ b/src/storage/chewing_large_table.cpp @@ -669,7 +669,7 @@ bool ChewingLargeTable::load_text(FILE * infile, TABLE_PHONETIC_TYPE type) { size_t freq; 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) -- cgit