X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Fdata-writer.c;h=652d522f3e1ab7ad5f8b363d5c06c09a14e29577;hb=efe067379890a29af2b4ad06bf83df7a2eb4d009;hp=eb5fe01963012a57626760fcc7b226825fc94395;hpb=ae9f5561a7fdeb23707bf355e06f3ca04824e738;p=pspp diff --git a/src/language/data-io/data-writer.c b/src/language/data-io/data-writer.c index eb5fe01963..652d522f3e 100644 --- a/src/language/data-io/data-writer.c +++ b/src/language/data-io/data-writer.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include "gettext.h" @@ -54,14 +54,14 @@ dfm_open_writer (struct file_handle *fh) w = *aux = xmalloc (sizeof *w); w->fh = fh; - w->file = fn_open (fh_get_filename (w->fh), "wb"); + w->file = fn_open (fh_get_file_name (w->fh), "wb"); w->bounce = NULL; if (w->file == NULL) { msg (ME, _("An error occurred while opening \"%s\" for writing " "as a data file: %s."), - fh_get_filename (w->fh), strerror (errno)); + fh_get_file_name (w->fh), strerror (errno)); goto error; }