diff --git a/lib/roles/http/client/client.c b/lib/roles/http/client/client.c index c4a4172a2..bb721ec75 100644 --- a/lib/roles/http/client/client.c +++ b/lib/roles/http/client/client.c @@ -785,7 +785,7 @@ lws_client_interpret_server_handshake(struct lws *wsi) q = strrchr(new_path, '/'); if (q) lws_strncpy(q + 1, p, sizeof(new_path) - - (q - new_path)); + (q - new_path) - 1); else path = p; }