diff options
| author | JosJuice <josjuice@gmail.com> | 2020-01-16 17:50:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-16 17:50:07 +0100 |
| commit | dd7f9ed5da142f91ba20da38c074033c7342af65 (patch) | |
| tree | bfab21acea4cfb34c2ad7b9543bce92eb5a4ac79 /Source/Core/Common/StringUtil.cpp | |
| parent | 1cc7ef356b9a33814efb290368150a1cceb0a3ed (diff) | |
| parent | 89b0ab2d22db510e799e6f9619e8c8e0678f13ef (diff) | |
Merge pull request #8566 from leoetlino/isprint-ub
StringUtil: Add IsPrintableCharacter and use it (and fix UB in MemoryViewWidget)
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 2369208f45..ac7e32efcf 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -71,7 +71,7 @@ std::string HexDump(const u8* data, size_t size) if (row_start + i < size) { char c = static_cast<char>(data[row_start + i]); - out += std::isprint(c, std::locale::classic()) ? c : '.'; + out += IsPrintableCharacter(c) ? c : '.'; } } out += "\n"; |
