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 --- utils/storage/gen_pinyin_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/storage/gen_pinyin_table.cpp b/utils/storage/gen_pinyin_table.cpp index bf0c73b..df3cafa 100644 --- a/utils/storage/gen_pinyin_table.cpp +++ b/utils/storage/gen_pinyin_table.cpp @@ -142,7 +142,7 @@ void feed_file ( const char * filename){ } while ( !feof(infile)){ - int num = fscanf(infile, "%1024s %1024s %u", + int num = fscanf(infile, "%1023s %1023s %u", phrase, pinyin, &freq); if (3 != num) -- cgit