Browse Source

Replace the only non-standard _snprintf with snprintf

Sean McBride 4 years ago
parent
commit
b7e9cd05cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CTest/cmProcess.cxx

+ 1 - 1
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