From 7e58bd88ca4991979bf063ef8eb94c57ed97773a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 2 Jan 2005 00:23:50 +0000 Subject: Cast the values passed to the macros so as to avoid sign-extending 8-bit characters. svn path=/trunk/; revision=12922 --- gtk/follow_dlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/follow_dlg.c') 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] = '.'; } } -- cgit v1.2.3