mirror of
https://github.com/curl/curl.git
synced 2026-07-24 01:57:16 +03:00
lib: use STRCONST() when possible in curlx_strcopy() calls
Follow-up to a535be4ea0
Closes #20335
This commit is contained in:
parent
493e3d6166
commit
af274feabf
5 changed files with 9 additions and 9 deletions
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue