diff --git a/tests/test_term_endpoint.cpp b/tests/test_term_endpoint.cpp index addf44ab..99d934b6 100644 --- a/tests/test_term_endpoint.cpp +++ b/tests/test_term_endpoint.cpp @@ -27,9 +27,11 @@ along with this program. If not, see . */ +#include #include "testutil.hpp" -#define BUF_SIZE 73 +/* Use the worst case filename size for the buffer (+1 for trailing NUL) */ +#define BUF_SIZE (FILENAME_MAX+1) int main (void) {