summaryrefslogtreecommitdiff
path: root/luxio.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-09-24 14:10:54 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-09-24 14:10:54 +0100
commit585c6acf6bf6374c268d7223ff1f6e7cd2c4bc8d (patch)
treebeb5ac3cd1ab97f4f6b6bfd55bef75e0ec4b40a7 /luxio.c
parent704c1f596f65109e0d697327f58b2f79ddc8658b (diff)
downloadluxio-585c6acf6bf6374c268d7223ff1f6e7cd2c4bc8d.tar.bz2
Remove debugging
Diffstat (limited to 'luxio.c')
-rw-r--r--luxio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/luxio.c b/luxio.c
index a912168..8ec0727 100644
--- a/luxio.c
+++ b/luxio.c
@@ -1079,7 +1079,7 @@ luxio_mkstemp(lua_State *L)
size_t buflen = pathconf(infname, _PC_PATH_MAX) + 256;
char fnamebuf[buflen];
int fd, saved_errno;
- printf("infname=%s (len %zd), buflen=%zd\n", infname, infname_len, buflen);
+
if (infname_len > (buflen - 1)) {
lua_pushinteger(L, -1);
lua_pushinteger(L, EINVAL);