Skip to content

Commit 918433b

Browse files
committed
make buffer larger for number to string
1 parent eb188ee commit 918433b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lualib-src/lua-bson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ pack_dict(lua_State *L, struct bson *b, bool isarray) {
419419
lua_pushnil(L);
420420
while(lua_next(L,-2) != 0) {
421421
int kt = lua_type(L, -2);
422-
char numberkey[8];
422+
char numberkey[32];
423423
const char * key = NULL;
424424
size_t sz;
425425
if (isarray) {

0 commit comments

Comments
 (0)