diff options
author | Peng Wu <alexepico@gmail.com> | 2018-01-25 12:58:23 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-01-25 12:58:23 +0800 |
commit | ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a (patch) | |
tree | 08a7db240980ab6a8ad99cd523b2bfea72095dea /utils | |
parent | 011d3bc3f4f956eac98e98aeb284ef9b085eae19 (diff) | |
download | libpinyin-ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a.tar.gz libpinyin-ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a.tar.xz libpinyin-ff713df50634fd5a2d3e5fd64fe5c57eb45b2b7a.zip |
fixes fscanf usage
Diffstat (limited to 'utils')
-rw-r--r-- | utils/storage/gen_pinyin_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |