diff options
author | Sean McBride <sean@rogue-research.com> | 2021-10-25 22:22:37 (GMT) |
---|---|---|
committer | Sean McBride <sean@rogue-research.com> | 2021-10-25 22:23:13 (GMT) |
commit | b7e9cd05cd07605d01a50522f65347aa23d2647e (patch) | |
tree | 7815274206164b4862630ffb784244f496336e05 /Source/CTest | |
parent | 5ba6e8ac59333aa574d5963332e3ef0f4c4d3514 (diff) | |
download | CMake-b7e9cd05cd07605d01a50522f65347aa23d2647e.zip CMake-b7e9cd05cd07605d01a50522f65347aa23d2647e.tar.gz CMake-b7e9cd05cd07605d01a50522f65347aa23d2647e.tar.bz2 |
Replace the only non-standard _snprintf with snprintf
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmProcess.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |