aboutsummaryrefslogtreecommitdiff
path: root/stand/liblua
diff options
context:
space:
mode:
Diffstat (limited to 'stand/liblua')
-rw-r--r--stand/liblua/lutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c
index 4547097f1cf9..956ffc561b88 100644
--- a/stand/liblua/lutils.c
+++ b/stand/liblua/lutils.c
@@ -153,13 +153,13 @@ lua_unsetenv(lua_State *L)
static int
lua_printc(lua_State *L)
{
- int status;
- ssize_t l;
+ ssize_t cur, l;
const char *s = luaL_checklstring(L, 1, &l);
- status = (printf("%s", s) == l);
+ for (cur = 0; cur < l; ++cur)
+ putchar((unsigned char)*(s++));
- return status;
+ return 1;
}
static int