diff --git a/Source/LuaBridge/detail/Stack.h b/Source/LuaBridge/detail/Stack.h index 9d6f61a2..d10fa8a2 100644 --- a/Source/LuaBridge/detail/Stack.h +++ b/Source/LuaBridge/detail/Stack.h @@ -457,7 +457,7 @@ struct Stack { static inline void push (lua_State* L, std::string const& str) { - lua_pushstring (L, str.c_str(), str.size()); + lua_pushlstring (L, str.c_str(), str.size()); } static inline std::string get (lua_State* L, int index)