From 99ffd2a7ca5c386bd79b4d620304c47fb6dfd58c Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 17 Sep 2014 21:44:15 +0000 Subject: PR libfortran/62768 Use gfc_unit.filename also when HAVE_TTYNAME{_R} is not defined. 2014-09-18 Janne Blomqvist PR libfortran/62768 * io/inquire.c (inquire_via_unit): Use gfc_unit.filename also when HAVE_TTYNAME{_R} is not defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215338 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/io/inquire.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgfortran/io') diff --git a/libgfortran/io/inquire.c b/libgfortran/io/inquire.c index 4d03161cbf8..c8b5623402c 100644 --- a/libgfortran/io/inquire.c +++ b/libgfortran/io/inquire.c @@ -92,9 +92,9 @@ inquire_via_unit (st_parameter_inquire *iqp, gfc_unit * u) else if (u->unit_number == options.stderr_unit) fstrcpy (iqp->name, iqp->name_len, "CONERR$", sizeof("CONERR$")); else - fstrcpy (iqp->name, iqp->name_len, u->file, u->file_len); + cf_strcpy (iqp->name, iqp->name_len, u->filename); #else - fstrcpy (iqp->name, iqp->name_len, u->file, u->file_len); + cf_strcpy (iqp->name, iqp->name_len, u->filename); #endif } -- cgit v1.2.1