diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-04-10 19:15:13 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-04-10 19:15:13 -0400 |
| commit | cf53c20aac99f553581c0933c19b5f422d38fd35 (patch) | |
| tree | ab33c4af1ca13b9ab6b2f61bd604c2f96ba8a4c6 /src/updater.cpp | |
| parent | 1e8a9a8e42fa9d57f8d3bc02a025887a9706af75 (diff) | |
| download | lingo-ap-tracker-cf53c20aac99f553581c0933c19b5f422d38fd35.tar.gz lingo-ap-tracker-cf53c20aac99f553581c0933c19b5f422d38fd35.tar.bz2 lingo-ap-tracker-cf53c20aac99f553581c0933c19b5f422d38fd35.zip | |
Fixed some compiler warnings
Diffstat (limited to 'src/updater.cpp')
| -rw-r--r-- | src/updater.cpp | 2 |
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); |
