aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 15:25:06 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 15:25:06 +0000
commitaa4b08e2ca2785e22e8e49271b7513a28275bbe1 (patch)
tree647c90184a9173aec217f7ec9b2b0c58a8c6f6cd /ui
parent33ef0c2600a986e8094caa266873d48c5899dece (diff)
ui/gtk/follow_stream.c was using isprint.h hack, change all isprint()
svn path=/trunk/; revision=54329
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/follow_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/follow_stream.c b/ui/gtk/follow_stream.c
index bf8614ab7d..2955bf2ec3 100644
--- a/ui/gtk/follow_stream.c
+++ b/ui/gtk/follow_stream.c
@@ -153,7 +153,7 @@ follow_print_text(char *buffer, size_t nchars, gboolean is_from_server _U_,
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] = '.';
}
}
@@ -973,7 +973,7 @@ follow_show(follow_info_t *follow_info,
/* 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(buffer[current_pos + i]) ?
buffer[current_pos + i] : '.' );
if (i == 7) {
*cur++ = ' ';