From cf53c20aac99f553581c0933c19b5f422d38fd35 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 10 Apr 2025 19:15:13 -0400 Subject: Fixed some compiler warnings --- src/main.cpp | 2 +- src/updater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 1d7cc9e..574b6df 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ class TrackerApp : public wxApp { public: - virtual bool OnInit() { + virtual bool OnInit() override { GetTrackerConfig().Load(); TrackerFrame *frame = new TrackerFrame(); 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) { char output[65] = {0}; for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) { - sprintf(output + (i * 2), "%02x", hash[i]); + snprintf(output + (i * 2), 3, "%02x", hash[i]); } return std::string(output); -- cgit 1.4.1