summaryrefslogtreecommitdiffstats
path: root/src/storage/table_info.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-03-13 09:40:48 +0800
committerPeng Wu <alexepico@gmail.com>2014-03-13 09:40:48 +0800
commit6a3fd302f0ca63ce02cda81950987fa0cdbea610 (patch)
tree4b7c9937188efc0dc1e923dc61ae7611e073162c /src/storage/table_info.cpp
parent740f54eed08e34348b377a33719368a05328e8fa (diff)
downloadlibpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.tar.gz
libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.tar.xz
libpinyin-6a3fd302f0ca63ce02cda81950987fa0cdbea610.zip
fixes fscanf
Diffstat (limited to 'src/storage/table_info.cpp')
-rw-r--r--src/storage/table_info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/table_info.cpp b/src/storage/table_info.cpp
index 63af8e0..6d1159a 100644
--- a/src/storage/table_info.cpp
+++ b/src/storage/table_info.cpp
@@ -162,7 +162,7 @@ bool SystemTableInfo::load(const char * filename) {
int index = 0;
char tablefile[256], sysfile[256], userfile[256], filetype[256];
while (!feof(input)) {
- num = fscanf(input, "%d %s %s %s %s\n",
+ num = fscanf(input, "%d %256s %256s %256s %256s\n",
&index, tablefile, sysfile, userfile, filetype);
if (5 != num)