diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-03-02 16:31:23 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-03-02 16:31:23 +0000 |
commit | a16664ce8cd5456b7f21856c85e272cef68b3725 (patch) | |
tree | 5a7f842655ce86db2af38f43648c530b379d8d81 | |
parent | 223e9874b6cb7c1bd3a2a71a4317d36cfd2fe393 (diff) | |
download | src-test2-a16664ce8cd5456b7f21856c85e272cef68b3725.tar.gz src-test2-a16664ce8cd5456b7f21856c85e272cef68b3725.zip |
Notes
-rw-r--r-- | stand/liblua/lutils.c | 8 |
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 |