diff options
| author | ame <[email protected]> | 2025-08-01 14:20:08 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-08-01 14:20:08 -0500 |
| commit | 10ddc97d221989e107c5283e3d5df8c48a23dc26 (patch) | |
| tree | f5e451cae3e424b50501668b390073065e9818f9 /src/lua.c | |
| parent | cbe16a234d75d27dfab552d724e2d1a1c3a08564 (diff) | |
write file, and code should be an int
Diffstat (limited to 'src/lua.c')
| -rw-r--r-- | src/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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");
}
|
