Fix buffer overflow error in recvfrom() call