26 lines
768 B
Diff
26 lines
768 B
Diff
From 9c799de888f2af27b57683af3370f13475e8eb99 Mon Sep 17 00:00:00 2001
|
|
From: Peter Ross <pross@xvid.org>
|
|
Date: Wed, 16 Dec 2020 15:15:40 +1100
|
|
Subject: [PATCH 02/23] ShaUtility: use snprintf
|
|
|
|
---
|
|
src/Skybolt/SkyboltCommon/ShaUtility.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/Skybolt/SkyboltCommon/ShaUtility.cpp b/src/Skybolt/SkyboltCommon/ShaUtility.cpp
|
|
index bbbf5aa..153af9f 100644
|
|
--- a/src/Skybolt/SkyboltCommon/ShaUtility.cpp
|
|
+++ b/src/Skybolt/SkyboltCommon/ShaUtility.cpp
|
|
@@ -23,7 +23,7 @@ std::string calcSha1(const std::string& p_arg)
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
{
|
|
- sprintf_s(buf + (i << 3), 41, "%08x", hash[i]);
|
|
+ snprintf(buf + (i << 3), 41, "%08x", hash[i]);
|
|
}
|
|
|
|
return std::string(buf);
|
|
--
|
|
2.29.2
|
|
|