1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 12:53:55 +08:00

Replace the only non-standard _snprintf with snprintf

This commit is contained in:
Sean McBride
2021-10-25 18:22:37 -04:00
parent 5ba6e8ac59
commit b7e9cd05cd

View File

@@ -511,7 +511,7 @@ std::string cmProcess::GetExitExceptionString() const
default: default:
char buf[1024]; char buf[1024];
const char* fmt = "Exit code 0x%" KWIML_INT_PRIx64 "\n"; const char* fmt = "Exit code 0x%" KWIML_INT_PRIx64 "\n";
_snprintf(buf, 1024, fmt, this->ExitValue); snprintf(buf, sizeof(buf), fmt, this->ExitValue);
exception_str.assign(buf); exception_str.assign(buf);
} }
#else #else