Using fwrite rather than write
[yaz-moved-to-github.git] / zoom / zoomsh.c
index 6a376c7..2cbd6d4 100644 (file)
@@ -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");
                     }