Commit 3ab5bcad authored by Chen Bill's avatar Chen Bill

update write_buffer_vector()

parent 99a46b79
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "group.h" #include "group.h"
#include "ocgapi.h" #include "ocgapi.h"
inline void write_buffer_vector(std::vector<byte>& buffer, const void* data, int size) { inline void write_buffer_vector(std::vector<byte>& buffer, const void*& data, int size) {
if (size > 0) { if (size > 0) {
const auto len = buffer.size(); const auto len = buffer.size();
buffer.resize(len + size); buffer.resize(len + size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment