X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemcapable.cc;h=25b470b017634394329afc31ddc6f631ee2598ed;hb=f253a58a663bfcbc0f9a3115745299b3bd5367ea;hp=bc3b551f412810d73fb9d7410d15bd5dcdfee7ad;hpb=a2d3699da26720a399bd7f563ccdbccf26e610c5;p=awesomized%2Flibmemcached diff --git a/clients/memcapable.cc b/clients/memcapable.cc index bc3b551f..25b470b0 100644 --- a/clients/memcapable.cc +++ b/clients/memcapable.cc @@ -39,6 +39,8 @@ #include #include +#include + #ifdef linux /* /usr/include/netinet/in.h defines macros from ntohs() to _bswap_nn to * optimize the conversion functions, but the prototypes generate warnings @@ -1715,7 +1717,8 @@ static enum test_return test_ascii_mget(void) "test_ascii_mget4 test_ascii_mget5 " "test_ascii_mget6\r\n")); - char *returned[nkeys]; + std::vector returned; + returned.resize(nkeys); for (uint32_t x= 0; x < nkeys; ++x) {