diff options
author | AndersBroman <anders.broman@ericsson.com> | 2014-05-13 14:44:47 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-05-13 16:14:07 +0000 |
commit | 3157bf6ba5e4896b28316695ecd3a4659631c8c2 (patch) | |
tree | 58a3778203fb4bcb46746532a9adf9a9dd8d0c17 /ui/qt | |
parent | f7819de76ab4ccffaa544c46211011f3ade7fede (diff) |
isprint() -> g_ascii_isprint()
Change-Id: Ia586ef8ce500d5fc7578c52014206fa7a7eaea41
Reviewed-on: https://code.wireshark.org/review/1624
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index a747b62812..0dc89d8c11 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -609,7 +609,7 @@ static inline void sanitize_buffer(char *buffer, size_t nchars) { for (size_t i = 0; i < nchars; i++) { if (buffer[i] == '\n' || buffer[i] == '\r' || buffer[i] == '\t') continue; - if (! isprint((guchar)buffer[i])) { + if (! g_ascii_isprint((guchar)buffer[i])) { buffer[i] = '.'; } } @@ -690,7 +690,7 @@ FollowStreamDialog::follow_show(char *buffer, size_t nchars, gboolean is_from_se /* Now dump bytes as text */ for (i = 0; i < 16 && current_pos + i < nchars; i++) { *cur++ = - (isprint((guchar)buffer[current_pos + i]) ? + (g_ascii_isprint((guchar)buffer[current_pos + i]) ? buffer[current_pos + i] : '.' ); if (i == 7) { *cur++ = ' '; |