diff --git a/components/lua/luaconf.h b/components/lua/luaconf.h index 0969fc6b..67ac3503 100644 --- a/components/lua/luaconf.h +++ b/components/lua/luaconf.h @@ -331,7 +331,7 @@ extern int readline4lua(const char *prompt, char *buffer, int length); ** avoids including 'stdio.h' everywhere.) */ #if !defined(LUA_USE_STDIO) -#define luai_writestring(s, l) printf(s) +#define luai_writestring(s, l) fwrite(s, 1, l, stdout) #define luai_writeline() puts("") #endif // defined(LUA_USE_STDIO)