From b7e9cd05cd07605d01a50522f65347aa23d2647e Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 25 Oct 2021 18:22:37 -0400 Subject: Replace the only non-standard _snprintf with snprintf --- Source/CTest/cmProcess.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index 16bca01..e14a4e1 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -511,7 +511,7 @@ std::string cmProcess::GetExitExceptionString() const default: char buf[1024]; 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); } #else -- cgit v0.12