X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fvchar.cc;h=1473509fa1383abd3bf996a7c5db46a86633953e;hb=6b83fd5838692b71a50710b9bc13680f9c586167;hp=fde0127f8d0da8fe2054e5eaf023383f60f1c893;hpb=a833bac7bfb7b59bb95e84cc8989d0edae6a6136;p=m6w6%2Flibmemcached diff --git a/libtest/vchar.cc b/libtest/vchar.cc index fde0127f..1473509f 100644 --- a/libtest/vchar.cc +++ b/libtest/vchar.cc @@ -34,7 +34,7 @@ * */ -#include +#include "mem_config.h" #include namespace libtest { @@ -81,6 +81,7 @@ void make(libtest::vchar_t& arg) void make(libtest::vchar_t& arg, size_t length) { + arg.reserve(length); for (uint32_t x= 0; x < length; x++) { arg.push_back(char(x % 127));