diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-07 22:35:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-07 22:35:14 +0000 |
commit | 7b4e1a3742232f05961b39bfffd4e2a26354fc09 (patch) | |
tree | f846649f8805d0bc6880afaf4e4dfb9457fa1343 | |
parent | f3d87ee7a7fb4de894be39d89f9b6e121ef8b2bb (diff) |
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
-rw-r--r-- | gtk/filter_prefs.c | 4 |
1 files 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 <gerald@zing.org> @@ -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); |