Using fwrite rather than write
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 24 Nov 2008 08:57:31 +0000 (09:57 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 24 Nov 2008 08:57:31 +0000 (09:57 +0100)
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");
                     }