From 3a81663d45d5dd171330735a89b8efcbd3156ac5 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 4 Dec 2023 01:19:57 -0600 Subject: fix the uh --- src/io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/io.c') 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); -- cgit v1.2.3