X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_string.hpp;h=78d02f2cacc5a4bbefcf430249a74361b068377a;hb=f450d8bfedfcddc318020fd93e306e45848a8702;hp=a277707753e9d10a58c417d128b469c6fcf3a16a;hpb=380cee71f41ef06022025d1819dec8e635967df8;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);