Fixed SNMP quirks parsing.
This commit is contained in:
parent
7fe5158771
commit
d52d3c895d
@ -96,8 +96,8 @@ diff -up cups-1.4.3/backend/snmp-supplies.c.snmp-quirks cups-1.4.3/backend/snmp-
|
||||
+ for (i = 0; i < sizeof (quirk_names) / sizeof (quirk_names[0]); i++)
|
||||
+ {
|
||||
+ len = strlen (quirk_names[i].keyword);
|
||||
+ if (!strncmp (value, quirk_names[i].keyword, len) &&
|
||||
+ (value[len] == '\0' || value[len] == ' '))
|
||||
+ if (!strncmp (ptr, quirk_names[i].keyword, len) &&
|
||||
+ (ptr[len] == '\0' || ptr[len] == ' '))
|
||||
+ quirks |= quirk_names[i].bit;
|
||||
+ }
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user