Fix buffer overflow in keepalivePacket.

fixes Lulz0rz/battle-node#1