summaryrefslogtreecommitdiff
path: root/ui/gtk/follow_stream.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 15:01:45 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 15:01:45 +0000
commit746ee39329954d5bca8d62736844bc17b1d0516c (patch)
tree68d5e307aceec48b0813e29f32314c41673c56fb /ui/gtk/follow_stream.c
parentbe733f30414ceb85304396d30b9648b6afe283e5 (diff)
downloadwireshark-746ee39329954d5bca8d62736844bc17b1d0516c.tar.gz
Drop isprint.h use g_ascii_isprint() when this include hack was enabled.
svn path=/trunk/; revision=54327
Diffstat (limited to 'ui/gtk/follow_stream.c')
-rw-r--r--ui/gtk/follow_stream.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/gtk/follow_stream.c b/ui/gtk/follow_stream.c
index 04333115da..bf8614ab7d 100644
--- a/ui/gtk/follow_stream.c
+++ b/ui/gtk/follow_stream.c
@@ -39,7 +39,6 @@
#include <epan/prefs.h>
#include <epan/charsets.h>
-#include <../isprint.h>
#include <epan/print.h>
#include <ui/alert_box.h>
@@ -109,8 +108,8 @@ follow_add_to_gtk_text(char *buffer, size_t nchars, gboolean is_from_server,
GtkTextBuffer *buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
GtkTextIter iter;
- /* While our isprint() hack is in place, we
- * have to convert some chars to '.' in order
+ /*
+ * have to convert non printable ASCII chars to '.' in order
* to be able to see the data we *should* see
* in the GtkText widget.
*/
@@ -119,7 +118,7 @@ follow_add_to_gtk_text(char *buffer, size_t nchars, gboolean is_from_server,
for (i = 0; i < nchars; i++) {
if (buffer[i] == '\n' || buffer[i] == '\r')
continue;
- if (! isprint((guchar)buffer[i])) {
+ if (! g_ascii_isprint(buffer[i])) {
buffer[i] = '.';
}
}