diff options
Diffstat (limited to 'src/asn1/ber_dec.cpp')
-rw-r--r-- | src/asn1/ber_dec.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/asn1/ber_dec.cpp b/src/asn1/ber_dec.cpp index f2873c177..860003440 100644 --- a/src/asn1/ber_dec.cpp +++ b/src/asn1/ber_dec.cpp @@ -106,7 +106,8 @@ u32bit find_eoc(DataSource* ber) const u32bit got = ber->peek(&buffer[0], buffer.size(), data.size()); if(got == 0) break; - data.append(&buffer[0], got); + + data += std::make_pair(&buffer[0], got); } DataSource_Memory source(data); @@ -171,7 +172,7 @@ BER_Decoder& BER_Decoder::raw_bytes(MemoryRegion<byte>& out) out.clear(); byte buf; while(source->read_byte(buf)) - out.append(buf); + out.push_back(buf); return (*this); } |