diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-01-18 19:46:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-01-18 19:46:19 +0000 |
commit | 4d81335d28ed53ed847a56685df67c4e3ea7801f (patch) | |
tree | fa8f259946039a931832b203199e2f59ace3fdfd | |
parent | ea34f3728c21e94f850fea72a31277be908f81f9 (diff) | |
download | wireshark-4d81335d28ed53ed847a56685df67c4e3ea7801f.tar.gz wireshark-4d81335d28ed53ed847a56685df67c4e3ea7801f.tar.bz2 wireshark-4d81335d28ed53ed847a56685df67c4e3ea7801f.zip |
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
-rw-r--r-- | gtk/follow_dlg.c | 6 |
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++] = ' '; } |