mirror of
https://github.com/curl/curl.git
synced 2026-06-18 18:45:42 +03:00
strerror: use 'const' as the string should never be modified
Closes #6068
This commit is contained in:
parent
8b1a10cdf7
commit
5168e5ad1d
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ const char *Curl_strerror(int err, char *buf, size_t buflen)
|
|||
}
|
||||
#else
|
||||
{
|
||||
char *msg = strerror(err);
|
||||
const char *msg = strerror(err);
|
||||
if(msg)
|
||||
strncpy(buf, msg, max);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue