about summary refs log tree commit diff stats
path: root/src/updater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/updater.cpp')
-rw-r--r--src/updater.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/updater.cpp b/src/updater.cpp index 773f7d3..2b05daf 100644 --- a/src/updater.cpp +++ b/src/updater.cpp
@@ -36,7 +36,7 @@ std::string CalculateStringSha256(const wxString& data) {
36 36
37 char output[65] = {0}; 37 char output[65] = {0};
38 for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) { 38 for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) {
39 sprintf(output + (i * 2), "%02x", hash[i]); 39 snprintf(output + (i * 2), 3, "%02x", hash[i]);
40 } 40 }
41 41
42 return std::string(output); 42 return std::string(output);