Commit c4e1a131 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Oops, fix write_file calls in nano.c also

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@673 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent cc197ef0
Showing with 3 additions and 3 deletions
+3 -3
...@@ -118,13 +118,13 @@ void die(char *msg, ...) ...@@ -118,13 +118,13 @@ void die(char *msg, ...)
* but we might as well TRY. */ * but we might as well TRY. */
if (filename[0] == '\0') { if (filename[0] == '\0') {
name = "nano.save"; name = "nano.save";
i = write_file(name, 1); i = write_file(name, 1, 0);
} else { } else {
char *buf = charalloc(strlen(filename) + 6); char *buf = charalloc(strlen(filename) + 6);
strcpy(buf, filename); strcpy(buf, filename);
strcat(buf, ".save"); strcat(buf, ".save");
i = write_file(buf, 1); i = write_file(buf, 1, 0);
name = buf; name = buf;
} }
/* Restore the old term settings */ /* Restore the old term settings */
...@@ -1482,7 +1482,7 @@ int do_spell(void) ...@@ -1482,7 +1482,7 @@ int do_spell(void)
return 0; return 0;
} }
if (write_file(temp, 1) == -1) { if (write_file(temp, 1, 0) == -1) {
statusbar(_("Spell checking failed: unable to write temp file!")); statusbar(_("Spell checking failed: unable to write temp file!"));
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment