diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-08-07 22:31:09 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-08-07 22:31:09 +0000 |
commit | a6ecc519003766801bb5c69b3f4e5f01c7c52480 (patch) | |
tree | 21e1a2d3df8d31def55e97c7ff5c8164e7e2fae1 /prefs.c | |
parent | 206ed892973034e343b881c742465106bb36a8bb (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2221 f5534014-38df-0310-8fa8-9805f1628bb7
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; } |