From f9225da811b7babce7218f71bf4dd954dff0ed6c Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 6 Sep 2019 21:13:16 -0500 Subject: Fix red Lua extend error splash timeout and stop cutting off info Change-Id: Icd6fe0fa1088ab59b8214f7c860f262ce67fe205 --- apps/plugins/lua/rocklua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/lua') diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c index b6e7a02261..ace73ee449 100644 --- a/apps/plugins/lua/rocklua.c +++ b/apps/plugins/lua/rocklua.c @@ -103,7 +103,7 @@ static int db_errorfb (lua_State *L) { } lua_pushliteral(L, "\n\t"); lua_getinfo(L1, "Snl", &ar); - char* filename = strrchr(ar.short_src, '/'); + char* filename = rb->strrchr(ar.short_src, '/'); /* remove path */ lua_pushfstring(L, "%s:", filename ? filename : ar.short_src); if (ar.currentline > 0) lua_pushfstring(L, "%d:", ar.currentline); -- cgit v1.2.3