Fixing a bug in msg.c, which makes ts.error appear at each received msg.
authorviric@llimona
Tue, 04 Nov 2008 19:16:09 +0100
changeset 272 9af5755d4296
parent 247 0981a60824f7 (current diff)
parent 271 11e4c2ac9607 (diff)
child 273 8d1f96d0e802
Fixing a bug in msg.c, which makes ts.error appear at each received msg.
--- a/msg.c	Mon Nov 03 20:23:35 2008 +0100
+++ b/msg.c	Tue Nov 04 19:16:09 2008 +0100
@@ -75,7 +75,7 @@
         warning_msg(m, "Receiving a message from %i.", fd);
     if (res == sizeof(*m) && 0)
         msgdump(stderr, m);
-    else if (res > 0)
+    if (res != sizeof(*m) && res > 0)
         warning_msg(m, "Receiving a message from %i, received %i bytes, "
                 "should have received %i.", fd,
                 res, sizeof(*m));