aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/byte_view_text.cpp
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2012-07-12 23:39:25 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2012-07-12 23:39:25 +0000
commit3882ce818d01c3e9dec59835e70cf083942aef27 (patch)
treee761270962c0632bb298c60aed5b926a1bc69163 /ui/qt/byte_view_text.cpp
parent0e41fa313794d0f1c50588a54e86b052814ec4a8 (diff)
Try not to print funny characters.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43685 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ui/qt/byte_view_text.cpp')
-rw-r--r--ui/qt/byte_view_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/byte_view_text.cpp b/ui/qt/byte_view_text.cpp
index e45ec3f4e9..5b27e90274 100644
--- a/ui/qt/byte_view_text.cpp
+++ b/ui/qt/byte_view_text.cpp
@@ -261,7 +261,7 @@ ByteViewText::hexPrintCommon()
else {
g_assert_not_reached();
}
- line += isprint(c) ? c : '.';
+ line += isascii(c) && isprint(c) ? c : '.';
} else {
line += ' ';
}