diff options
author | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-17 21:44:15 +0000 |
---|---|---|
committer | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-17 21:44:15 +0000 |
commit | 99ffd2a7ca5c386bd79b4d620304c47fb6dfd58c (patch) | |
tree | bfa288f8fa42e02e4604f4cec44e37f0e62a14ea /libgfortran | |
parent | bc587267bd85c2b30d8c0e8448ee6a5739271516 (diff) | |
download | gcc-99ffd2a7ca5c386bd79b4d620304c47fb6dfd58c.tar.gz |
PR libfortran/62768 Use gfc_unit.filename also when HAVE_TTYNAME{_R} is not defined.
2014-09-18 Janne Blomqvist <jb@gcc.gnu.org>
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
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/inquire.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index fde3965e5eb..e27c2a7f7c1 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2014-09-18 Janne Blomqvist <jb@gcc.gnu.org> + + PR libfortran/62768 + * io/inquire.c (inquire_via_unit): Use gfc_unit.filename also when + HAVE_TTYNAME{_R} is not defined. + 2014-09-17 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/62768 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 } |