summaryrefslogtreecommitdiff
path: root/src/palrt
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2016-12-23 14:41:28 +0100
committerJan Kotas <jkotas@microsoft.com>2016-12-23 05:41:28 -0800
commitf5cbe4c9cab2873b60cd3c991732a250d2e164a2 (patch)
tree3dfef3ef56990e19fb914821ed4e6f36c9931fd1 /src/palrt
parent5ef3df8ffe059d5f91c6bae09d8f95a0332f1363 (diff)
downloadcoreclr-f5cbe4c9cab2873b60cd3c991732a250d2e164a2.tar.gz
coreclr-f5cbe4c9cab2873b60cd3c991732a250d2e164a2.tar.bz2
coreclr-f5cbe4c9cab2873b60cd3c991732a250d2e164a2.zip
Remove all usage of vsnprintf (#8709)
This change removes all usages of vsnprintf and modifies runtime to not to use vsnprintf or _vsnprintf I've also fixed two issues in PAL TRACE function string format parameters that caused crashes when I was trying to run all PAL tests with PAL tracing enabled.
Diffstat (limited to 'src/palrt')
-rw-r--r--src/palrt/coguid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/palrt/coguid.cpp b/src/palrt/coguid.cpp
index cd03dce591..6c1efd460a 100644
--- a/src/palrt/coguid.cpp
+++ b/src/palrt/coguid.cpp
@@ -17,7 +17,7 @@ STDAPI_(int) StringFromGUID2(REFGUID rguid, LPOLESTR lptsz, int cchMax)
if (cchMax < 39)
return 0;
- return swprintf(lptsz, W("{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"),
+ return swprintf_s(lptsz, cchMax, W("{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"),
rguid.Data1, rguid.Data2, rguid.Data3,
rguid.Data4[0], rguid.Data4[1],
rguid.Data4[2], rguid.Data4[3],