diff --git a/lib/strerror.c b/lib/strerror.c index b5808df2d1..9082eac6a5 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