commit ac3afc7cd464b3595b51f20690fcc3594286889b
parent 350cc4bcb67e652fafbc9ef591bb79333703abee
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 3 Dec 2010 15:20:26 -0200
'printf' replaced by 'luai_writestring'
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);
}