diff options
Diffstat (limited to 'meowpp/oo/ObjSelector.h')
-rw-r--r-- | meowpp/oo/ObjSelector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meowpp/oo/ObjSelector.h b/meowpp/oo/ObjSelector.h index 7664a11..58d86a0 100644 --- a/meowpp/oo/ObjSelector.h +++ b/meowpp/oo/ObjSelector.h @@ -11,7 +11,7 @@ #include <cstdlib> #include <cstdio> -namespace meow{ +namespace meow { /*! * @brief 利用register的概念, 達到runtime用string選擇要new的class @@ -186,7 +186,7 @@ public: * @brief 從檔案中讀取一個物件(該物件必須要有註冊過) */ static ObjBase* read(FILE* f, bool binary) { - char name[2048]; + static char name[2048]; size_t len; unsigned int fg; if (binary) { |