From ac3afc7cd464b3595b51f20690fcc3594286889b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Dec 2010 15:20:50 -0200 Subject: [PATCH] 'printf' replaced by 'luai_writestring' --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua.c b/lua.c index 7d1d300d..efb4ee2a 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.193 2010/10/18 16:06:33 roberto Exp roberto $ +** $Id: lua.c,v 1.194 2010/10/25 19:01:37 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -185,7 +185,7 @@ static int docall (lua_State *L, int narg, int nres) { static void print_version (void) { - printf("%s\n", LUA_COPYRIGHT); + luai_writestring(LUA_COPYRIGHT "\n", sizeof(LUA_COPYRIGHT) + 1); }