Fixed TCP bug.

Packet was being copied with a wrong, smaller length.