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/table_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/table_info.cpp') 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) -- cgit