diff options
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/updater.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ | |||
10 | 10 | ||
11 | class TrackerApp : public wxApp { | 11 | class TrackerApp : public wxApp { |
12 | public: | 12 | public: |
13 | virtual bool OnInit() { | 13 | virtual bool OnInit() override { |
14 | GetTrackerConfig().Load(); | 14 | GetTrackerConfig().Load(); |
15 | 15 | ||
16 | TrackerFrame *frame = new TrackerFrame(); | 16 | 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) { | |||
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); |