currshortcut = writefile_list;
if (exiting && openfile->filename[0] != '\0' && ISSET(TEMP_FILE)) {
- retval = write_file(openfile->filename, NULL, FALSE, 0,
+ retval = write_file(openfile->filename, NULL, FALSE, OVERWRITE,
FALSE);
/* Write succeeded. */
retval = get_next_filename(die_filename, ".save");
if (retval[0] != '\0')
- failed = (write_file(retval, NULL, TRUE, FALSE, TRUE) == -1);
+ failed = (write_file(retval, NULL, TRUE, OVERWRITE,
+ TRUE) == -1);
if (!failed)
fprintf(stderr, _("\nBuffer written to %s\n"), retval);
#ifndef NANO_SMALL
if (openfile->mark_set)
- i = write_marked_file(temp, temp_file, TRUE, FALSE);
+ i = write_marked_file(temp, temp_file, TRUE, OVERWRITE);
else
#endif
- i = write_file(temp, temp_file, TRUE, FALSE, FALSE);
+ i = write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
if (i == -1) {
statusbar(_("Error writing temp file: %s"), strerror(errno));