X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fpor-file-writer.c;h=3a4e88e7f0cb6e5c6b5a545340e00f8168d7723d;hb=ab003a1ebf553431c6a7d31c21a383fcc47c5e71;hp=778b8e402f3a303157ee597380872caa87cfb000;hpb=e2da62d735c597afeef2e0e9b36e5a4a83d7da94;p=pspp diff --git a/src/data/por-file-writer.c b/src/data/por-file-writer.c index 778b8e402f..3a4e88e7f0 100644 --- a/src/data/por-file-writer.c +++ b/src/data/por-file-writer.c @@ -153,8 +153,8 @@ pfm_open_writer (struct file_handle *fh, struct dictionary *dict, mode = 0444; if (opts.create_writeable) mode |= 0222; - w->rf = replace_file_start (fh_get_file_name (fh), "w", mode, - &w->file, NULL); + w->rf = replace_file_start (fh, "w", mode, + &w->file); if (w->rf == NULL) { msg (ME, _("Error opening `%s' for writing as a portable file: %s."),