openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Use correct C++11 definition for vsprintf_s

Open ChristophHaag opened this issue 8 years ago • 3 comments

defining it to sprintf actually segfaults in a release build. vsnprintf is the correct C++11 equivalent.

ChristophHaag avatar Jul 25 '17 00:07 ChristophHaag

Uhm, updated because it's vsprintf() and not vsnprintf().

ChristophHaag avatar Aug 06 '17 10:08 ChristophHaag

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);

heftig avatar Jul 16 '24 13:07 heftig

Also stricmp and _stricmp should probably be strcasecmp, not just strcmp.

heftig avatar Jul 16 '24 13:07 heftig