summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklua.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklua.c')
-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);