From 6b36c7ab225c4619dcb5ac33c34813a66277457e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 11 Apr 2015 15:26:58 +0200 Subject: cstr() - > c_str() as preparation for move to std::string (nw) --- src/emu/luaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/luaengine.c') diff --git a/src/emu/luaengine.c b/src/emu/luaengine.c index f31e7c4550d..12be9947cae 100644 --- a/src/emu/luaengine.c +++ b/src/emu/luaengine.c @@ -1044,7 +1044,7 @@ void lua_engine::periodic_check() osd_lock_acquire(lock); if (msg.ready == 1) { lua_settop(m_lua_state, 0); - int status = luaL_loadbuffer(m_lua_state, msg.text.cstr(), strlen(msg.text.cstr()), "=stdin"); + int status = luaL_loadbuffer(m_lua_state, msg.text.c_str(), strlen(msg.text.c_str()), "=stdin"); if (incomplete(status)==0) /* cannot try to add lines? */ { if (status == LUA_OK) status = docall(0, LUA_MULTRET); -- cgit v1.2.3