aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-18 19:46:19 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-18 19:46:19 +0000
commit4d81335d28ed53ed847a56685df67c4e3ea7801f (patch)
treefa8f259946039a931832b203199e2f59ace3fdfd /gtk
parentea34f3728c21e94f850fea72a31277be908f81f9 (diff)
Squelch a valid compiler warning (passing a "char" to the "is..." macros
can give the wrong answer if the 8th bit of the "char" is set). svn path=/trunk/; revision=4567
Diffstat (limited to 'gtk')
-rw-r--r--gtk/follow_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/follow_dlg.c b/gtk/follow_dlg.c
index cfbc514241..eac6965fd7 100644
--- a/gtk/follow_dlg.c
+++ b/gtk/follow_dlg.c
@@ -1,6 +1,6 @@
/* follow_dlg.c
*
- * $Id: follow_dlg.c,v 1.18 2002/01/18 07:25:22 guy Exp $
+ * $Id: follow_dlg.c,v 1.19 2002/01/18 19:46:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -561,7 +561,9 @@ follow_read_stream(follow_info_t *follow_info,
/* Now dump bytes as text */
for (i = 0; i < 16 && current_pos + i < nchars;
i++) {
- hexbuf[cur++] = (isprint(buffer[current_pos + i]) ? buffer[current_pos + i] : '.' );
+ hexbuf[cur++] =
+ (isprint((guchar)buffer[current_pos + i]) ?
+ buffer[current_pos + i] : '.' );
if (i == 7) {
hexbuf[cur++] = ' ';
}