aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/compression/compression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/compression/compression.cpp b/src/lib/compression/compression.cpp
index 0e0221fe6..6057f9408 100644
--- a/src/lib/compression/compression.cpp
+++ b/src/lib/compression/compression.cpp
@@ -124,7 +124,7 @@ void Stream_Compression::process(secure_vector<byte>& buf, size_t offset, u32bit
}
}
- copy_mem(&m_buffer[0], &buf[0], offset);
+ copy_mem(m_buffer.data(), buf.data(), offset);
buf.swap(m_buffer);
}
@@ -205,7 +205,7 @@ void Stream_Decompression::process(secure_vector<byte>& buf, size_t offset, u32b
}
}
- copy_mem(&m_buffer[0], &buf[0], offset);
+ copy_mem(m_buffer.data(), buf.data(), offset);
buf.swap(m_buffer);
}