aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-07 22:31:09 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-07 22:31:09 +0000
commitf3d87ee7a7fb4de894be39d89f9b6e121ef8b2bb (patch)
tree21e1a2d3df8d31def55e97c7ff5c8164e7e2fae1
parent73e093e7e793a52cc7980d3a6fe82dda75c9ace7 (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 preferences file. svn path=/trunk/; revision=2221
-rw-r--r--prefs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/prefs.c b/prefs.c
index 77f99d0494..52436a45d0 100644
--- a/prefs.c
+++ b/prefs.c
@@ -1,7 +1,7 @@
/* prefs.c
* Routines for handling preferences
*
- * $Id: prefs.c,v 1.32 2000/07/09 03:29:28 guy Exp $
+ * $Id: prefs.c,v 1.33 2000/08/07 22:31:09 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -623,7 +623,7 @@ read_prefs_file(const char *pf_path, FILE *pf)
cur_val[val_len] = got_c;
val_len++;
} else {
- while (isspace(cur_val[val_len]) && val_len > 0)
+ while (isspace((guchar)cur_val[val_len]) && val_len > 0)
val_len--;
state = IN_SKIP;
}