X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemcapable.cc;h=25b470b017634394329afc31ddc6f631ee2598ed;hb=6cca0302addd6ea9714f2b8deff2c48aab3002ef;hp=bc3b551f412810d73fb9d7410d15bd5dcdfee7ad;hpb=70d0d339d06cbe6b35ef0efc4fd3d7e8f92b6a01;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) {