summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfszip.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-29 14:59:56 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-29 15:03:03 +0300
commit5552b6f960a562522c36992aeca6dd2e22e9b111 (patch)
treed07eb128e873577a9c763ee635a56d9643b9e2f6 /src/fs/virtfs/virtfszip.cpp
parent97d9ed131ae4fad7d54274cf5b74cf587b391bad (diff)
downloadmv-5552b6f960a562522c36992aeca6dd2e22e9b111.tar.gz
mv-5552b6f960a562522c36992aeca6dd2e22e9b111.tar.bz2
mv-5552b6f960a562522c36992aeca6dd2e22e9b111.tar.xz
mv-5552b6f960a562522c36992aeca6dd2e22e9b111.zip
Add missing const in zip file buffer.
Diffstat (limited to 'src/fs/virtfs/virtfszip.cpp')
-rw-r--r--src/fs/virtfs/virtfszip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/virtfszip.cpp b/src/fs/virtfs/virtfszip.cpp
index 687245f3a..8490cb981 100644
--- a/src/fs/virtfs/virtfszip.cpp
+++ b/src/fs/virtfs/virtfszip.cpp
@@ -220,7 +220,7 @@ namespace VirtFsZip
const ZipLocalHeader *restrict const header = *it2;
if (header->fileName == filename)
{
- uint8_t *restrict const buf = Zip::readFile(header);
+ const uint8_t *restrict const buf = Zip::readFile(header);
if (buf == nullptr)
return nullptr;
VirtFile *restrict const file = new VirtFile(&funcs);
@@ -350,7 +350,7 @@ namespace VirtFsZip
const ZipLocalHeader *restrict const header = *it2;
if (header->fileName == filename)
{
- uint8_t *restrict const buf = Zip::readFile(header);
+ const uint8_t *restrict const buf = Zip::readFile(header);
if (buf == nullptr)
return nullptr;