X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fputw.c;h=0ff9d7fbffb98a5d5919a3e8658678095674a3b7;hb=7650390de8f72822ec0d4a9fb5b52efcf0be4698;hp=a6d2429278a67f3df5061c041fc113b1fd2d350e;hpb=98eddc677609c20796982f3171165700613e3cf2;p=musl diff --git a/src/stdio/putw.c b/src/stdio/putw.c index a6d24292..0ff9d7fb 100644 --- a/src/stdio/putw.c +++ b/src/stdio/putw.c @@ -3,5 +3,5 @@ int putw(int x, FILE *f) { - return fwrite(&x, sizeof x, 1, f) ? x : EOF; + return (int)fwrite(&x, sizeof x, 1, f)-1; }