lib: use STRCONST() when possible in curlx_strcopy() calls

Follow-up to a535be4ea0

Closes #20335
This commit is contained in:
Daniel Stenberg 2026-01-16 10:36:07 +01:00
parent 493e3d6166
commit af274feabf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 9 additions and 9 deletions

View file

@ -43,7 +43,7 @@ UNITTEST void time2str(char *r, size_t rsize, curl_off_t seconds)
{
curl_off_t h;
if(seconds <= 0) {
curlx_strcopy(r, rsize, " ", 7);
curlx_strcopy(r, rsize, STRCONST(" "));
return;
}
h = seconds / 3600;
@ -76,7 +76,7 @@ UNITTEST void time2str(char *r, size_t rsize, curl_off_t seconds)
if(y <= 99999)
curl_msnprintf(r, rsize, "%6" FMT_OFF_T "y", y);
else
curlx_strcopy(r, rsize, ">99999y", 7);
curlx_strcopy(r, rsize, STRCONST(">99999y"));
}
}
}