aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index f2a5c82..3f2922c 100644
--- a/src/io.c
+++ b/src/io.c
@@ -28,6 +28,7 @@ int l_readfile(lua_State* L){
out[count] = ch;
count++;
}
+ out[count] = '\0';
lua_pushstring(L, out);
free(out);