projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a71313f
)
Using fwrite rather than write
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 24 Nov 2008 08:57:31 +0000
(09:57 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 24 Nov 2008 08:57:31 +0000
(09:57 +0100)
zoom/zoomsh.c
patch
|
blob
|
history
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
6a376c7
..
2cbd6d4
100644
(file)
--- a/
zoom/zoomsh.c
+++ b/
zoom/zoomsh.c
@@
-207,7
+207,7
@@
static void display_records(ZOOM_connection c,
schema ? schema : "unknown");
if (render)
{
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");
}
{
printf("write to stdout failed\n");
}