aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools.c b/src/tools.c
index 212cf52..ccd941d 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -1219,10 +1219,7 @@ static void lookup_native_func( lua_State *L2, lua_State *L, uint_t i)
1219 lua_rawget( L2, -2); // {} f 1219 lua_rawget( L2, -2); // {} f
1220 if( !lua_isfunction( L2, -1)) 1220 if( !lua_isfunction( L2, -1))
1221 { 1221 {
1222 // yarglah: luaL_error formatting doesn't support string width modifier! 1222 luaL_error( L, "function %s not found in destination transfer database.", fqn);
1223 char message[256];
1224 sprintf( message, "function %*s not found in destination transfer database.", len, fqn);
1225 luaL_error( L, message);
1226 } 1223 }
1227 lua_remove( L2, -2); // f 1224 lua_remove( L2, -2); // f
1228 STACK_END( L2, 1) 1225 STACK_END( L2, 1)