From c4e1a131d38b5c834251fae1ccc9f6ba64f8b58d Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Tue, 29 May 2001 04:46:38 +0000 Subject: [PATCH] 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 --- nano.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nano.c b/nano.c index 02ca3ba7..f269d368 100644 --- a/nano.c +++ b/nano.c @@ -118,13 +118,13 @@ void die(char *msg, ...) * but we might as well TRY. */ if (filename[0] == '\0') { name = "nano.save"; - i = write_file(name, 1); + i = write_file(name, 1, 0); } else { char *buf = charalloc(strlen(filename) + 6); strcpy(buf, filename); strcat(buf, ".save"); - i = write_file(buf, 1); + i = write_file(buf, 1, 0); name = buf; } /* Restore the old term settings */ @@ -1482,7 +1482,7 @@ int do_spell(void) return 0; } - if (write_file(temp, 1) == -1) { + if (write_file(temp, 1, 0) == -1) { statusbar(_("Spell checking failed: unable to write temp file!")); return 0; } -- 2.39.5