Add maxsize of packet
[remotetop.git] / td_lmsg.c
index 24c3b22..cd6e6ad 100644 (file)
--- a/td_lmsg.c
+++ b/td_lmsg.c
@@ -102,7 +102,7 @@ ConnectionWorks() {
                                break;
                        case CS_READ:
                                if ( conn->readyio ) {
-                                       TC_Read( conn );
+                                       TC_Read( conn, TCMSGHDRSZ );
                                        if ( conn->state != CS_READ ) i--; /* check it one more time */ 
                                }
                                break;