summaryrefslogtreecommitdiff
path: root/cpputil/databuffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpputil/databuffer.cc')
-rw-r--r--cpputil/databuffer.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpputil/databuffer.cc b/cpputil/databuffer.cc
index d60ebccb3..1420d76b4 100644
--- a/cpputil/databuffer.cc
+++ b/cpputil/databuffer.cc
@@ -18,12 +18,12 @@
namespace nss_test {
-void DataBuffer::Assign(const uint8_t* data, size_t len) {
- if (data) {
- Allocate(len);
- memcpy(static_cast<void*>(data_), static_cast<const void*>(data), len);
+void DataBuffer::Assign(const uint8_t* d, size_t l) {
+ if (d) {
+ Allocate(l);
+ memcpy(static_cast<void*>(data_), static_cast<const void*>(d), l);
} else {
- assert(len == 0);
+ assert(l == 0);
data_ = nullptr;
len_ = 0;
}