summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 449a88aa0a..bf69acff93 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -175,7 +175,7 @@ void save_changes(int overwrite)
175 rb->kbd_input(filename,MAX_PATH); 175 rb->kbd_input(filename,MAX_PATH);
176 } 176 }
177 177
178 fd = rb->open(filename,O_WRONLY|O_CREAT); 178 fd = rb->open(filename,O_WRONLY|O_CREAT|O_TRUNC);
179 if (fd < 0) 179 if (fd < 0)
180 { 180 {
181 rb->splash(HZ*2,1,"Changes NOT saved"); 181 rb->splash(HZ*2,1,"Changes NOT saved");