X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=2cbd6d4f540821b8f995d057ac4cc4d302d9f738;hb=4936dff1c451bc76df80ddad8557c2396526f843;hp=6a376c7c28a0250169a83b2bb8d44c2c9e629da3;hpb=7ef1b50f481cda83d012cc3d69d83f9313836f1f;p=yaz-moved-to-github.git 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"); }