Fix buffer overflow in "46 01 edit ponies"

Fix stack buffer overflow where a client could crash the server (and
potentially gain remote code execution) by referencing an out-of-bound
pony ID in a "edit ponies" (0x64 0x01) request.
This bug could also be triggered by fuzzing the pony name fields in the
LoE client.