summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilipp Klaus Krause <pkk@spth.de>2020-10-13 18:35:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-15 15:43:32 +0200
commit5168e5ad1dbc2a3398a2c3c6c7cba2779a4e4cee (patch)
tree234ccc36073e83e1be52bbe6c8e3dfa1894fabe0 /lib
parent8b1a10cdf7fe0dd1dc288106500f6333b77b51a6 (diff)
downloadcurl-5168e5ad1dbc2a3398a2c3c6c7cba2779a4e4cee.tar.gz
strerror: use 'const' as the string should never be modified
Closes #6068
Diffstat (limited to 'lib')
-rw-r--r--lib/strerror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index b5808df2d..9082eac6a 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -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