More requirements for libyaz3-devel
[yaz-moved-to-github.git] / zoom / zoomtst6.c
index 931e399..18895cb 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2009 Index Data
  * See the file LICENSE for details.
  */
 
@@ -29,7 +29,10 @@ static void display_records (const char *tname, ZOOM_resultset r)
             {
                 printf ("%d %s\n", pos+1, (db ? db : "unknown"));
                 if (render)
-                    fwrite (render, 1, len, stdout);
+                {
+                    if (fwrite (render, 1, len, stdout) != (size_t) len)
+                        printf("write to stdout failed\n");
+                }
                 printf ("\n");
             }
         }