Merge topic 'fix-Wformat'

94930c47e4 cmSystemTools: Fix -Wformat warning in EncodeURL

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10870
This commit is contained in:
Brad King
2025-06-11 14:10:31 +00:00
committed by Kitware Robot
+1 -1
View File
@@ -4165,7 +4165,7 @@ std::string cmSystemTools::EncodeURL(std::string const& in, bool escapeSlashes)
case ' ':
case '=':
case '%':
snprintf(hexCh, sizeof(hexCh), "%%%02X", static_cast<int>(c));
snprintf(hexCh, sizeof(hexCh), "%%%02X", static_cast<unsigned int>(c));
break;
case '/':
if (escapeSlashes) {