diff --git a/t/tests-preload.c b/t/tests-preload.c index 61ef35821..810df553d 100644 --- a/t/tests-preload.c +++ b/t/tests-preload.c @@ -227,7 +227,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))