aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/follow_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-02 00:23:50 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-02 00:23:50 +0000
commit7e58bd88ca4991979bf063ef8eb94c57ed97773a (patch)
tree3d5917fa6d67eea7ecd45db197456896629cbc4f /gtk/follow_dlg.c
parent90c434d5ac86be6478160ca2457382799c9596de (diff)
Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters. svn path=/trunk/; revision=12922
Diffstat (limited to 'gtk/follow_dlg.c')
-rw-r--r--gtk/follow_dlg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/follow_dlg.c b/gtk/follow_dlg.c
index c5da79bdc7..678394ba2b 100644
--- a/gtk/follow_dlg.c
+++ b/gtk/follow_dlg.c
@@ -761,7 +761,7 @@ follow_print_text(char *buffer, int nchars, gboolean is_server _U_, void *arg)
for (i = 0; i < nchars; i++) {
if (buffer[i] == '\n' || buffer[i] == '\r')
continue;
- if (! isprint(buffer[i])) {
+ if (! isprint((guchar)buffer[i])) {
buffer[i] = '.';
}
}