replace_file_start: Now takes a file handle instead of a file name
[pspp] / src / language / data-io / data-writer.c
index 5f87d0060ac589a27c0713ba8cfc38ca91329642..8ae72513391bd8949a52e3180e89cf7c63467f62 100644 (file)
@@ -92,7 +92,7 @@ dfm_open_writer (struct file_handle *fh, const char *encoding)
   w = xmalloc (sizeof *w);
   w->fh = fh_ref (fh);
   w->lock = lock;
-  w->rf = replace_file_start (fh_get_file_name (w->fh), "wb", 0666,
+  w->rf = replace_file_start (w->fh, "wb", 0666,
                               &w->file, NULL);
   w->encoding = xstrdup (encoding);
   w->line_ends = fh_get_line_ends (fh);