X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_string.hpp;h=78d02f2cacc5a4bbefcf430249a74361b068377a;hb=3223b1d6ce831bed7db99651f787cf0e827bd8b1;hp=a277707753e9d10a58c417d128b469c6fcf3a16a;hpb=ee659c84695e9f94b1f6a5f8be203dc0012ca685;p=apitrace diff --git a/common/os_string.hpp b/common/os_string.hpp index a277707..78d02f2 100644 --- a/common/os_string.hpp +++ b/common/os_string.hpp @@ -206,7 +206,7 @@ public: va_list args_copy; va_copy(args_copy, args); #ifdef _WIN32 - /* We need to use _vcsprintf to calculate the length as vsnprintf returns -1 + /* We need to use _vscprintf to calculate the length as vsnprintf returns -1 * if the number of characters to write is greater than count. */ length = _vscprintf(format, args_copy);