tidy-up: use CURL_CSTRLEN() macro on more static strings

Follow-up to e1450d8fda #22406

Closes #22424
This commit is contained in:
Viktor Szakats 2026-07-28 22:36:11 +02:00
parent 8186edf85d
commit 59dc2bbe07
No known key found for this signature in database
6 changed files with 11 additions and 11 deletions

View file

@ -690,10 +690,10 @@ static int rtspd_send_doc(curl_socket_t sock, struct rtspd_httprequest *req)
case RCMD_STREAM: {
static const char streamthis[] = "a string to stream 01234567890\n";
for(;;) {
written = swrite(sock, streamthis, sizeof(streamthis) - 1);
written = swrite(sock, streamthis, CURL_CSTRLEN(streamthis));
if(got_exit_signal)
return -1;
if(written != (ssize_t)(sizeof(streamthis) - 1)) {
if(written != (ssize_t)CURL_CSTRLEN(streamthis)) {
logmsg("Stopped streaming");
break;
}