Fixed an array overflow in sv_client.c and removed tolower() toupper()