openvr
openvr copied to clipboard
Use correct C++11 definition for vsprintf_s
defining it to sprintf actually segfaults in a release build. vsnprintf is the correct C++11 equivalent.
Uhm, updated because it's vsprintf() and not vsnprintf().
It should be vsnprintf.
int vsprintf_s(char *buffer, size_t numberOfElements, const char *format, va_list argptr);
int vsnprintf(char *restrict str, size_t size, const char *restrict format, va_list ap);
Also stricmp and _stricmp should probably be strcasecmp, not just strcmp.