diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 3042685c76a..4c92333266c 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2007-09-07 Jerry DeLisle + + PR libfortran/33307 + * io/filepos.c (st_backspace): Don't truncate when already at the end + of the file. + 2007-09-07 Uros Bizjak * config/fpu-387.h: Include cpuid.h. diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c index c0412e83879..96e5e243787 100644 --- a/libgfortran/io/file_pos.c +++ b/libgfortran/io/file_pos.c @@ -213,7 +213,6 @@ st_backspace (st_parameter_filepos *fpp) u->endfile = AT_ENDFILE; u->flags.position = POSITION_APPEND; flush (u->s); - struncate (u->s); } else {