PR libf2c/17636
* libI77/err.c (f__nowwriting): Call fseek if end-of-file.
From-SVN: r92924
+2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ PR libf2c/17636
+ * libI77/err.c (f__nowwriting): Call fseek if end-of-file.
+
2004-11-04 Release Manager
* GCC 3.4.3 released.
extern char *f__w_mode[];
if (x->urw & 2)
- goto done;
+ {
+ /* Not required according to C99 7.19.5.3, but
+ this really helps on Solaris. */
+ if (feof (x->ufd))
+ FSEEK (x->ufd, 0, SEEK_END);
+ goto done;
+ }
if (!x->ufnm)
goto cantwrite;
ufmt = x->url ? 0 : x->ufmt;