summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua')
-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) {
103 } 103 }
104 lua_pushliteral(L, "\n\t"); 104 lua_pushliteral(L, "\n\t");
105 lua_getinfo(L1, "Snl", &ar); 105 lua_getinfo(L1, "Snl", &ar);
106 char* filename = strrchr(ar.short_src, '/'); 106 char* filename = rb->strrchr(ar.short_src, '/'); /* remove path */
107 lua_pushfstring(L, "%s:", filename ? filename : ar.short_src); 107 lua_pushfstring(L, "%s:", filename ? filename : ar.short_src);
108 if (ar.currentline > 0) 108 if (ar.currentline > 0)
109 lua_pushfstring(L, "%d:", ar.currentline); 109 lua_pushfstring(L, "%d:", ar.currentline);