aboutsummaryrefslogtreecommitdiff
path: root/src/lua.c
diff options
context:
space:
mode:
authorame <[email protected]>2025-08-01 14:20:08 -0500
committerame <[email protected]>2025-08-01 14:20:08 -0500
commit10ddc97d221989e107c5283e3d5df8c48a23dc26 (patch)
treef5e451cae3e424b50501668b390073065e9818f9 /src/lua.c
parentcbe16a234d75d27dfab552d724e2d1a1c3a08564 (diff)
write file, and code should be an int
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c
index 4fe9962..3d35858 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -73,7 +73,7 @@ int _stream_file(lua_State* L){
const char* filename = lua_tostring(L, 2);
FILE *f;
- f = fopen(filename, "a");
+ f = fopen(filename, "w");
if(f == NULL){
luaI_error(L, -1, "unable to open file");
}