Skip to content

Commit c6b2e39

Browse files
lauris71metsma
andcommitted
Update cdoc/Tar.cpp
Co-authored-by: Raul Metsma <[email protected]>
1 parent fe017da commit c6b2e39

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)