aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-04 01:19:57 -0600
committerame <[email protected]>2023-12-04 01:19:57 -0600
commit3a81663d45d5dd171330735a89b8efcbd3156ac5 (patch)
tree6c6b41e10754e31487c7e9f9f1b655ccea913ecd /src/io.c
parent0cb307c50930d9aba2b1a6af46c1da75943778d3 (diff)
fix the uh
Diffstat (limited to 'src/io.c')
-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);