From 5168e5ad1dbc2a3398a2c3c6c7cba2779a4e4cee Mon Sep 17 00:00:00 2001 From: Philipp Klaus Krause Date: Tue, 13 Oct 2020 18:35:50 +0200 Subject: strerror: use 'const' as the string should never be modified Closes #6068 --- lib/strerror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/strerror.c') 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 -- cgit v1.2.1