mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +08:00
Replace the only non-standard _snprintf with snprintf
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user