diff options
| author | Peng Wu <alexepico@gmail.com> | 2014-03-13 09:40:48 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2014-03-13 09:40:48 +0800 |
| commit | 6a3fd302f0ca63ce02cda81950987fa0cdbea610 (patch) | |
| tree | 4b7c9937188efc0dc1e923dc61ae7611e073162c /utils | |
| parent | 740f54eed08e34348b377a33719368a05328e8fa (diff) | |
| download | libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.tar.gz libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.tar.xz libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.zip | |
fixes fscanf
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 3b541d1..d900e74 100644 --- a/utils/storage/gen_pinyin_table.cpp +++ b/utils/storage/gen_pinyin_table.cpp @@ -143,7 +143,7 @@ void feed_file ( const char * filename){ } while ( !feof(infile)){ - int num = fscanf(infile, "%s %s %u", + int num = fscanf(infile, "%1024s %1024s %u", phrase, pinyin, &freq); if (3 != num) |
