projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix segfault.
[pspp]
/
src
/
language
/
data-io
/
data-writer.c
diff --git
a/src/language/data-io/data-writer.c
b/src/language/data-io/data-writer.c
index eb5fe01963012a57626760fcc7b226825fc94395..652d522f3e1ab7ad5f8b363d5c06c09a14e29577 100644
(file)
--- a/
src/language/data-io/data-writer.c
+++ b/
src/language/data-io/data-writer.c
@@
-25,7
+25,7
@@
#include <libpspp/alloc.h>
#include <libpspp/message.h>
#include <language/data-io/file-handle.h>
#include <libpspp/alloc.h>
#include <libpspp/message.h>
#include <language/data-io/file-handle.h>
-#include <data/filename.h>
+#include <data/file
-
name.h>
#include <libpspp/str.h>
#include "gettext.h"
#include <libpspp/str.h>
#include "gettext.h"
@@
-54,14
+54,14
@@
dfm_open_writer (struct file_handle *fh)
w = *aux = xmalloc (sizeof *w);
w->fh = 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."),
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;
}
goto error;
}