This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Saturday 24 March 2012 05:47:48 Andreas Schwab wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > + size_t len = fmt - str;
> > +
> > + if (fwrite (str, 1, len, fp) != len)
> > + abort ();
>
> Write errors should either be handled or ignored, but aborting is not
> the right thing (it's not an internal error).
so just do something like the following ?
if (fwrite (str, 1, len, fp) != len)
{
/* Ignore. */
}
-mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |