send the correct number of bytes

This commit is contained in:
Bill Currie 2003-11-25 03:22:51 +00:00
parent cb7ecd9f26
commit 82975dfe1f

View file

@ -92,8 +92,7 @@ SV_FlushRedirect (void)
while (count) {
bytes = min (count, sizeof (send) - 5);
memcpy (send + 5, p, bytes);
send[5 + bytes] = 0;
Netchan_SendPacket (bytes + 1, send, net_from);
Netchan_SendPacket (bytes + 5, send, net_from);
p += bytes;
count -= bytes;
}