From 4936dff1c451bc76df80ddad8557c2396526f843 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Nov 2008 09:57:31 +0100 Subject: [PATCH] Using fwrite rather than write --- zoom/zoomsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 1.7.10.4