Hi Daiki, Thank you for noticing this, and the rapid fix.
> Sorry, attached an old patch; this would be simpler (and also supports > other platforms that need O_BINARY). > + ASSERT (fwrite (DATA, 1, sizeof(DATA)-1, f) == sizeof(DATA)-1); ... > + ASSERT (fread (buf, 1, sizeof(buf), f) == sizeof(DATA)-1); GNU coding style wants a space between 'sizeof' and the opening parenthesis. Other than that, your patch is perfect. Thanks again! Bruno