From 3ac9cb3fed03112d67fcf3aae53f70973ade1ea4 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 2 Apr 2024 10:21:22 +0600 Subject: [PATCH] Fixed bug at yon_file_save function --- source/libublsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libublsettings.c b/source/libublsettings.c index 5bb67cf..e26785f 100644 --- a/source/libublsettings.c +++ b/source/libublsettings.c @@ -1935,7 +1935,7 @@ config_str yon_file_open(char *file_path, int *size){ } int yon_file_save(char *file_path, char *text){ - FILE *file = fopen(file_path,"r"); + FILE *file = fopen(file_path,"w"); if (file){ fputs(text,file); fclose(file);