We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8a4780 commit a0c075bCopy full SHA for a0c075b
1 file changed
scheduler/conf.c
@@ -3026,12 +3026,15 @@ parse_variable(
3026
return (0);
3027
}
3028
3029
- if (!isdigit(*value & 255))
+ while (*value)
3030
{
3031
- cupsdLogMessage(CUPSD_LOG_ERROR,
3032
- "Bad integer value for %s on line %d of %s.",
3033
- line, linenum, filename);
3034
- return (0);
+ if (!isdigit(*value++))
+ {
+ cupsdLogMessage(CUPSD_LOG_ERROR,
+ "Bad integer value for %s on line %d of %s.",
3035
+ line, linenum, filename);
3036
+ return (0);
3037
+ }
3038
3039
3040
int n = (int)strtol(value, NULL, 10);
0 commit comments