summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-03-02 16:31:23 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-03-02 16:31:23 +0000
commita16664ce8cd5456b7f21856c85e272cef68b3725 (patch)
tree5a7f842655ce86db2af38f43648c530b379d8d81
parent223e9874b6cb7c1bd3a2a71a4317d36cfd2fe393 (diff)
downloadsrc-test2-a16664ce8cd5456b7f21856c85e272cef68b3725.tar.gz
src-test2-a16664ce8cd5456b7f21856c85e272cef68b3725.zip
Notes
-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