aboutsummaryrefslogtreecommitdiffstats
path: root/src/ber_dec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ber_dec.cpp')
-rw-r--r--src/ber_dec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ber_dec.cpp b/src/ber_dec.cpp
index afe678f84..2537a917b 100644
--- a/src/ber_dec.cpp
+++ b/src/ber_dec.cpp
@@ -104,7 +104,7 @@ u32bit find_eoc(DataSource* ber)
const u32bit got = ber->peek(buffer, buffer.size(), data.size());
if(got == 0)
break;
- data.push_back(buffer, got);
+ data.append(buffer, got);
}
DataSource_Memory source(data);
@@ -169,7 +169,7 @@ BER_Decoder& BER_Decoder::raw_bytes(MemoryRegion<byte>& out)
out.destroy();
byte buf;
while(source->read_byte(buf))
- out.push_back(buf);
+ out.append(buf);
return (*this);
}