summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);