X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fhas.cc;h=0983f070301f6668f7ae97d5d3a4f8657ae6eded;hb=1899ec2a3d1f4f180b0109879a966fd6603ece86;hp=2d9abf6b4f26abd70a7a9920384caadc21128dda;hpb=3166705c1046e69f9c21b641120dc839f39b0e25;p=m6w6%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