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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user