Fixing a problem in msg.c, which resulted in Warnings very often in ts.error.
authorviric@llimona
Sat, 16 Aug 2008 21:18:31 +0200
changeset 271 11e4c2ac9607
parent 239 18301d7a56d4
child 272 9af5755d4296
Fixing a problem in msg.c, which resulted in Warnings very often in ts.error.
msg.c
--- a/msg.c	Tue Aug 12 12:57:40 2008 +0200
+++ b/msg.c	Sat Aug 16 21:18:31 2008 +0200
@@ -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));