Fixed itoa warning and added safe versions for sprintf and vsprintf.
Fixed incorrect passing of string constants and related warnings.