Commits

Anonymous committed ec763fc

Fixed recv loop to accept the correct number of bytes in each call.

Comments (0)

Files changed (1)

     /* Receive from server */
     int bytes_recv = 0;
     while (bytes_recv < len) {
-      int result = recv(connect_socket, (char*) (Data + bytes_recv), len, 0);
+      int result = recv(connect_socket, (char*) (Data + bytes_recv), len-bytes_recv, 0);
       bytes_recv += result;
     }
 /*