Fixed possible buffer overflow in function to send friend requests.