for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked);
c;
c = (ppd_choice_t *)cupsArrayNext(ppd->marked))
+ {
cupsArrayRemove(ppd->marked, c);
+ c->marked = 0;
+ }
/*
* Then repopulate it with the defaults...
cups_option_t **options, /* IO - Options */
_ppd_parse_t which) /* I - What to parse */
{
- char option[PPD_MAX_NAME + 1], /* Current option/property */
+ char option[PPD_MAX_NAME * 2 + 1], /* Current option/property */
choice[PPD_MAX_NAME], /* Current choice/value */
*ptr; /* Pointer into option or choice */
* Skip leading whitespace...
*/
- while (isspace(*s & 255))
+ while (_cups_isspace(*s))
s ++;
/*
*/
ptr = option;
- while (*s && !isspace(*s & 255) && ptr < (option + sizeof(option) - 1))
+ while (*s && !_cups_isspace(*s) && ptr < (option + sizeof(option) - 1))
*ptr++ = *s++;
- if (ptr == s || !isspace(*s & 255))
+ if (ptr == s || !_cups_isspace(*s))
break;
*ptr = '\0';
* Get the choice...
*/
- while (isspace(*s & 255))
+ while (_cups_isspace(*s))
s ++;
if (!*s)
break;
ptr = choice;
- while (*s && !isspace(*s & 255) && ptr < (choice + sizeof(choice) - 1))
+ while (*s && !_cups_isspace(*s) && ptr < (choice + sizeof(choice) - 1))
*ptr++ = *s++;
- if (!isspace(*s & 255) && *s)
+ if (*s && !_cups_isspace(*s))
break;
*ptr = '\0';