summaryrefslogtreecommitdiff
path: root/src/ToolBox/superpmi/superpmi-shared
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2016-12-09 00:51:19 +0100
committerGitHub <noreply@github.com>2016-12-09 00:51:19 +0100
commite58e3c5e0a527802bd5286c537dc3ed603317c1d (patch)
treedabb0caf55c65bfe141a91de2c64a4c22a3682c5 /src/ToolBox/superpmi/superpmi-shared
parentbf4ed11eb5cee7123fd0c6fa5b60f09fe7adf23e (diff)
downloadcoreclr-e58e3c5e0a527802bd5286c537dc3ed603317c1d.tar.gz
coreclr-e58e3c5e0a527802bd5286c537dc3ed603317c1d.tar.bz2
coreclr-e58e3c5e0a527802bd5286c537dc3ed603317c1d.zip
Remove sscanf and sprintf usage (#8508)
* Remove sscanf * Remove sprintf
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared')
-rw-r--r--src/ToolBox/superpmi/superpmi-shared/mclist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/mclist.cpp b/src/ToolBox/superpmi/superpmi-shared/mclist.cpp
index 6a6f8701bf..511893fc96 100644
--- a/src/ToolBox/superpmi/superpmi-shared/mclist.cpp
+++ b/src/ToolBox/superpmi/superpmi-shared/mclist.cpp
@@ -237,7 +237,7 @@ void MCList::AddMethodToMCL(int methodIndex)
DWORD charCount = 0;
DWORD bytesWritten = 0;
- charCount = sprintf(strMethodIndex, "%d\r\n", methodIndex);
+ charCount = sprintf_s(strMethodIndex, sizeof(strMethodIndex), "%d\r\n", methodIndex);
if (!WriteFile(hMCLFile, strMethodIndex, charCount, &bytesWritten, nullptr) || bytesWritten != charCount)
{