From 6a3fd302f0ca63ce02cda81950987fa0cdbea610 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 13 Mar 2014 09:40:48 +0800 Subject: fixes fscanf --- 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 83c3ccf..5e5bdd8 100644 --- a/src/storage/chewing_large_table.cpp +++ b/src/storage/chewing_large_table.cpp @@ -668,7 +668,7 @@ bool ChewingLargeTable::load_text(FILE * infile) { size_t freq; 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