diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-07 22:31:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-07 22:31:09 +0000 |
commit | f3d87ee7a7fb4de894be39d89f9b6e121ef8b2bb (patch) | |
tree | 21e1a2d3df8d31def55e97c7ff5c8164e7e2fae1 /prefs.c | |
parent | 73e093e7e793a52cc7980d3a6fe82dda75c9ace7 (diff) | |
download | wireshark-f3d87ee7a7fb4de894be39d89f9b6e121ef8b2bb.tar.gz wireshark-f3d87ee7a7fb4de894be39d89f9b6e121ef8b2bb.tar.bz2 wireshark-f3d87ee7a7fb4de894be39d89f9b6e121ef8b2bb.zip |
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
Diffstat (limited to 'prefs.c')
-rw-r--r-- | prefs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |