Skip to content

Commit

Permalink
LuaWrapper turned out not to have been 0-byte clean when pushing std:…
Browse files Browse the repository at this point in the history
…:strings from C++!
  • Loading branch information
ahupowerdns committed Feb 1, 2016
1 parent 176fdd7 commit e0c3971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/luawrapper/include/LuaContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ struct LuaContext::Pusher<std::string> {
static const int maxSize = 1;

static PushedObject push(lua_State* state, const std::string& value) noexcept {
lua_pushstring(state, value.c_str());
lua_pushlstring(state, value.c_str(), value.length());
return PushedObject{state, 1};
}
};
Expand Down

0 comments on commit e0c3971

Please sign in to comment.