From 213dda9224f18c156bb94b2c6c054ce400a22bd0 Mon Sep 17 00:00:00 2001 From: benoit-germain Date: Tue, 24 Apr 2012 16:36:52 +0300 Subject: Fix issue #15 (lanes fails to build on Linux x86_64 (gcc 4.6.1) size_t vs int size) --- src/tools.c | 5 +---- 1 file changed, 1 insertion(+), 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) lua_rawget( L2, -2); // {} f if( !lua_isfunction( L2, -1)) { - // yarglah: luaL_error formatting doesn't support string width modifier! - char message[256]; - sprintf( message, "function %*s not found in destination transfer database.", len, fqn); - luaL_error( L, message); + luaL_error( L, "function %s not found in destination transfer database.", fqn); } lua_remove( L2, -2); // f STACK_END( L2, 1) -- cgit v1.2.3-55-g6feb