summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-09-06 21:13:16 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-09-06 21:13:16 -0500
commitf9225da811b7babce7218f71bf4dd954dff0ed6c (patch)
tree39e9bd72ef7b1deec8c22ff7a6fe8de642b9b2e1 /apps
parentbbd4a6cb9162d5e98ff9ba9c7d3489e0a774d441 (diff)
Fix red Lua extend error splash timeout and stop cutting off info
Change-Id: Icd6fe0fa1088ab59b8214f7c860f262ce67fe205
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/lua/rocklua.c2
1 files changed, 1 insertions, 1 deletions
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);