From 918433bd5842e7965815cb1f8ea6f68ca676412b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Tue, 25 Feb 2014 15:52:20 +0800 Subject: [PATCH] make buffer larger for number to string --- lualib-src/lua-bson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib-src/lua-bson.c b/lualib-src/lua-bson.c index 3661c85b..bc3b06e4 100644 --- a/lualib-src/lua-bson.c +++ b/lualib-src/lua-bson.c @@ -419,7 +419,7 @@ pack_dict(lua_State *L, struct bson *b, bool isarray) { lua_pushnil(L); while(lua_next(L,-2) != 0) { int kt = lua_type(L, -2); - char numberkey[8]; + char numberkey[32]; const char * key = NULL; size_t sz; if (isarray) {