# HG changeset patch # User jbe # Date 1510789015 -3600 # Node ID e18589f22314bc96f9d2d3d50e94a3fe2776a8c8 # Parent 477456cea3610ea1a9f2fc5db24eb6e300f43b51 Bugfix in moonbr_io_read_cont function which caused read chunks to be concatenated in wrong order diff -r 477456cea361 -r e18589f22314 moonbridge_io.c --- a/moonbridge_io.c Wed Nov 15 15:35:42 2017 +0100 +++ b/moonbridge_io.c Thu Nov 16 00:36:55 2017 +0100 @@ -372,8 +372,8 @@ lua_pushvalue(L, 5); lua_newtable(L); lua_replace(L, 5); + lua_rawseti(L, 5, 1); lua_rawseti(L, 5, 2); - lua_rawseti(L, 5, 1); ctx = 2; } else { lua_rawseti(L, 5, lua_rawlen(L, 5) + 1);