From 7b4e1a3742232f05961b39bfffd4e2a26354fc09 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 7 Aug 2000 22:35:14 +0000 Subject: Cast an argument to "isspace()" to "guchar" so that if it has the 8th bit set it won't get sign-extended; this squelches a GCC complaint, and may keep weird things from happening if there're non-ASCII ISO 8859/n characters in a filter file. svn path=/trunk/; revision=2222 --- gtk/filter_prefs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/filter_prefs.c b/gtk/filter_prefs.c index 8ff6b656ec..425e3c201d 100644 --- a/gtk/filter_prefs.c +++ b/gtk/filter_prefs.c @@ -3,7 +3,7 @@ * (This used to be a notebook page under "Preferences", hence the * "prefs" in the file name.) * - * $Id: filter_prefs.c,v 1.14 2000/08/05 07:02:27 guy Exp $ + * $Id: filter_prefs.c,v 1.15 2000/08/07 22:35:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -132,7 +132,7 @@ get_filter_list(void) name_begin++; name_end[0] = '\0'; filt_begin = name_end + 1; - while(isspace(filt_begin[0])) filt_begin++; + while(isspace((guchar)filt_begin[0])) filt_begin++; /* No filter string */ if (filt_begin[0] == '\0') { g_warning("Malformed filter in '%s' line %d.", ff_path, line); -- cgit v1.2.3