diff options
Diffstat (limited to 'src/gui/updaterwindow.cpp')
-rw-r--r-- | src/gui/updaterwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp index ad4b45ab1..1dc154b23 100644 --- a/src/gui/updaterwindow.cpp +++ b/src/gui/updaterwindow.cpp @@ -928,7 +928,8 @@ bool UpdaterWindow::validateFile(const std::string &filePath, unsigned long UpdaterWindow::getFileHash(const std::string &filePath) { int size = 0; - char *buf = static_cast<char*>(ResourceManager::loadFile(filePath, size)); + char *const buf = static_cast<char*>(ResourceManager::loadFile( + filePath, size)); if (!buf) return 0; return Net::Download::adlerBuffer(buf, size); |