X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fhas.cc;h=0983f070301f6668f7ae97d5d3a4f8657ae6eded;hb=033a3a1829e8a1e0d170f748f6b7824e25ec45f4;hp=2d9abf6b4f26abd70a7a9920384caadc21128dda;hpb=5f767fd094e7485c8e4799a04f550806280540e9;p=awesomized%2Flibmemcached diff --git a/libtest/has.cc b/libtest/has.cc index 2d9abf6b..0983f070 100644 --- a/libtest/has.cc +++ b/libtest/has.cc @@ -165,7 +165,7 @@ static void initialize_memcached_binary_path() if (access(arg_buffer.str().c_str(), X_OK) == 0) { - strncpy(memcached_binary_path, arg_buffer.str().c_str(), FILENAME_MAX); + strncpy(memcached_binary_path, arg_buffer.str().c_str(), FILENAME_MAX-1); } } #endif