mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
cmSystemTools: Fix -Wformat warning in EncodeURL
This commit is contained in:
@@ -4165,7 +4165,7 @@ std::string cmSystemTools::EncodeURL(std::string const& in, bool escapeSlashes)
|
|||||||
case ' ':
|
case ' ':
|
||||||
case '=':
|
case '=':
|
||||||
case '%':
|
case '%':
|
||||||
snprintf(hexCh, sizeof(hexCh), "%%%02X", static_cast<int>(c));
|
snprintf(hexCh, sizeof(hexCh), "%%%02X", static_cast<unsigned int>(c));
|
||||||
break;
|
break;
|
||||||
case '/':
|
case '/':
|
||||||
if (escapeSlashes) {
|
if (escapeSlashes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user