diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-15 18:35:39 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-15 18:35:39 +0000 |
commit | 85f987dad30ed43374e293c6d1ae02fca6734392 (patch) | |
tree | 6e6e8b8beb5dc2aee64c348240fde8280384a9f1 /libgfortran | |
parent | b97f1a181c84feddeb4b17cf2e2f9b0aed6d892d (diff) | |
download | gcc-85f987dad30ed43374e293c6d1ae02fca6734392.tar.gz |
PR fortran/15311
* io/write.c (write_a): right justify A edit output.
libgfortran/
* gfortran.fortran-torture/execute/write_a_1.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/write.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index bbf22d4d082..2ebef7f2d1b 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2004-05-15 Bud Davis <bdavis9659@comcast.net> + + PR fortran/15311 + * io/write.c (write_a): right justify A edit output. + 2004-05-14 Bud Davis <bdavis9659@comcast.net> PR fortran/15149 diff --git a/libgfortran/io/write.c b/libgfortran/io/write.c index dd44f6e5f72..05dbd9bb789 100644 --- a/libgfortran/io/write.c +++ b/libgfortran/io/write.c @@ -50,8 +50,8 @@ write_a (fnode * f, const char *source, int len) memcpy (p, source, wlen); else { - memcpy (p, source, len); - memset (p + len, ' ', wlen - len); + memset (p, ' ', wlen - len); + memcpy (p + wlen - len, source, len); } } |