mojoshader_common.c
changeset 1195 f4ef8606c68d
parent 1188 25000edc0176
child 1224 21cd84f1aa0a
equal deleted inserted replaced
1194:3948d7f5b4ff 1195:f4ef8606c68d
   574     // if the buffer overflows instead of the length the string would have
   574     // if the buffer overflows instead of the length the string would have
   575     // been as expected.
   575     // been as expected.
   576     // In this case we make another copy of va and fetch the length only
   576     // In this case we make another copy of va and fetch the length only
   577     // with another call to _vscprintf
   577     // with another call to _vscprintf
   578 
   578 
   579 #ifdef _MSC_VER
   579 #ifdef _WIN32
   580     if (len == -1)
   580     if (len == -1)
   581     {
   581     {
   582         va_copy(ap, va);
   582         va_copy(ap, va);
   583         len = _vscprintf(fmt, ap);
   583         len = _vscprintf(fmt, ap);
   584         va_end(ap);
   584         va_end(ap);