Fix buffer overflow in chat server example
Merge pull request #1 from Ralith/fix-chat-example-overflow

Fix buffer overflow in chat server example