From: Adam Dickmeiss Date: Mon, 24 Nov 2008 08:57:31 +0000 (+0100) Subject: Using fwrite rather than write X-Git-Tag: v3.0.40~34^2~1 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=4936dff1c451bc76df80ddad8557c2396526f843;p=yaz-moved-to-github.git Using fwrite rather than write --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 6a376c7..2cbd6d4 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -207,7 +207,7 @@ static void display_records(ZOOM_connection c, schema ? schema : "unknown"); if (render) { - if (write(render, 1, len, stdout) != len) + if (fwrite(render, 1, len, stdout) != len) { printf("write to stdout failed\n"); }