diff --git a/t/tests-preload.c b/t/tests-preload.c index c79928e3f..fb963bdf2 100644 --- a/t/tests-preload.c +++ b/t/tests-preload.c @@ -256,7 +256,7 @@ got_peer: } else if (path[0] == '[') { path++; - char *end = strchr(path, ']'); + const char *end = strchr(path, ']'); assert(end != NULL); char addr[64]; if (snprintf(addr, sizeof(addr), "%.*s", (int) (end - path), path) >= sizeof(addr))