diff --git a/components/crashcatcher/windows_crashcatcher.cpp b/components/crashcatcher/windows_crashcatcher.cpp index 254a36f0f0..23dfac549c 100644 --- a/components/crashcatcher/windows_crashcatcher.cpp +++ b/components/crashcatcher/windows_crashcatcher.cpp @@ -25,7 +25,6 @@ namespace Crash if (length >= sizeof(buffer)) length = sizeof(buffer) - 1; strncpy_s(buffer, sizeof(buffer), Misc::StringUtils::u8StringToString(str).c_str(), length); - buffer[length] = '\0'; } }