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

@ -656,12 +656,12 @@ const char *Curl_sspi_strerror(SECURITY_STATUS err, char *buf, size_t buflen)
else
curl_msnprintf(buf, buflen, "%s (0x%08lx)", txt, err);
}
#else
#else /* !CURL_DISABLE_VERBOSE_STRINGS */
(void)txt;
if(err == SEC_E_OK)
txt = "No error";
curlx_strcopy(buf, buflen, STRCONST("No error"));
else
txt = "Error";
curlx_strcopy(buf, buflen, txt, strlen(txt));
curlx_strcopy(buf, buflen, STRCONST("Error"));
#endif
if(errno != old_errno)