From e692918b34b127e3be7ef00fd470c90ff8adb3ca Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 25 Jun 2009 08:04:39 +0000 Subject: Added casts to ensure proper values are passed to the ctype.h functions. [Juergen Buchmueller] --- src/lib/util/options.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/util/options.c') 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 */ -- cgit v1.2.3-70-g09d2