diff options
author | 2009-06-25 08:04:39 +0000 | |
---|---|---|
committer | 2009-06-25 08:04:39 +0000 | |
commit | e692918b34b127e3be7ef00fd470c90ff8adb3ca (patch) | |
tree | 392424f5045e66e50a96a5f7e4b217da870dcf69 /src/lib/util/options.c | |
parent | f7ce2a786aaa4ac5e9f82daa4b78ee89ca5ef46c (diff) |
Added casts to ensure proper values are passed to the ctype.h functions.
[Juergen Buchmueller]
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r-- | src/lib/util/options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c index 3d1673fd0d2..2b6b62fbb84 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -483,7 +483,7 @@ int options_parse_ini_file(core_options *opts, core_file *inifile, int priority) /* find the name */ for (optionname = buffer; *optionname != 0; optionname++) - if (!isspace(*optionname)) + if (!isspace((UINT8)*optionname)) break; /* skip comments */ @@ -492,7 +492,7 @@ int options_parse_ini_file(core_options *opts, core_file *inifile, int priority) /* scan forward to find the first space */ for (temp = optionname; *temp != 0; temp++) - if (isspace(*temp)) + if (isspace((UINT8)*temp)) break; /* if we hit the end early, print a warning and continue */ @@ -973,9 +973,9 @@ static void update_data(core_options *opts, options_data *data, const char *newd int i; /* strip off leading/trailing spaces */ - while (isspace(*datastart) && datastart <= dataend) + while (isspace((UINT8)*datastart) && datastart <= dataend) datastart++; - while (isspace(*dataend) && datastart <= dataend) + while (isspace((UINT8)*dataend) && datastart <= dataend) dataend--; /* strip off quotes */ |