Index: /tags/ipp-20110406/psModules/src/extras/pmVisualUtils.c
===================================================================
--- /tags/ipp-20110406/psModules/src/extras/pmVisualUtils.c	(revision 31373)
+++ /tags/ipp-20110406/psModules/src/extras/pmVisualUtils.c	(revision 31374)
@@ -416,10 +416,11 @@
         return;
     } else {
+        int nwritten = 0;
         if (comp->level == PM_DEFAULT_VISUAL_LEVEL) {
 	    sprintf(line,"%*s%-*s %d\n", depth, "", 20 - depth, comp->name, defLevel);
-	    fwrite (line, 1, strlen(line), output);
+	    nwritten = fwrite (line, 1, strlen(line), output);
         } else {
 	    sprintf(line, "%*s%-*s %d\n", depth, "", 20 - depth, comp->name, comp->level);
-	    fwrite (line, 1, strlen(line), output);
+	    nwritten = fwrite (line, 1, strlen(line), output);
         }
     }
