mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue