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