Skip to content

Commit 4f09b8e

Browse files
author
Lauris Kaplinski
committed
Merge branch 'master' of github.com:lauris71/libcdoc
Signed-off-by: Lauris Kaplinski <[email protected]>
2 parents f06bf56 + 3b23a3b commit 4f09b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdoc/Tar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ libcdoc::TarConsumer::writeHeader(Header &h, int64_t size) {
150150

151151
libcdoc::result_t
152152
libcdoc::TarConsumer::writePadding(int64_t size) {
153-
static std::array<uint8_t,BLOCKSIZE> pad {};
153+
static const std::array<uint8_t,BLOCKSIZE> pad {};
154154
auto padSize = padding(size);
155155
if(auto rv = _dst->write(pad.data(), padSize); rv != padSize)
156156
return rv < OK ? rv : OUTPUT_ERROR;

0 commit comments

Comments
 (0)