[PATCH][MSP430] Fix return code error in simulator implemenations of write.c.

Nick Clifton nickc@redhat.com
Fri May 26 10:37:00 GMT 2017


Hi Martin,

> In the MSP430 simulator implementation of write() in write.c the wrong
> local is used as the return code (it's returning the result of the
> last invocation of write_chunk() (variable c) rather than the
> aggregate write size (variable rv). This causes issues for users of
> write().
> 
> Patch included as attachment to avoid whitespace issues.

Thanks very much for reporting this problem, and for providing a fix.
I have checked your patch in, so the write() function should work
properly from now on.

Cheers
  Nick




More information about the Newlib mailing list