Index: /trunk/lib/format_legacy.c
===================================================================
--- /trunk/lib/format_legacy.c	(revision 1077)
+++ /trunk/lib/format_legacy.c	(revision 1078)
@@ -132,7 +132,9 @@
 	if ((numbytes=libtrace_io_read(INPUT.file,
 					buffer,
-					64)) == -1) {
-		trace_set_err(libtrace,errno,"read(%s)",libtrace->uridata);
-		return -1;
+					64)) != 64) {
+		if (numbytes!=0) {
+			trace_set_err(libtrace,errno,"read(%s)",libtrace->uridata);
+		}
+		return numbytes;
 	}
 	
