aboutsummaryrefslogtreecommitdiff
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
commit843d6ce352bd0fbedb9b0945a19747ed409ebd46 (patch)
tree6c6b41e10754e31487c7e9f9f1b655ccea913ecd
parent7832bc32b4933696e7a34b180bbba46b0c98b858 (diff)
fix the uh
-rw-r--r--io.lua2
-rw-r--r--src/io.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/io.lua b/io.lua
index fd58bab..6456ef1 100644
--- a/io.lua
+++ b/io.lua
@@ -1,2 +1,2 @@
require "llib"
-print(llib.io.readfile("../personal-site/src/window-utils.js"))
+print(llib.io.readfile("../aoc2023/src/1.input"))
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);