From 9cf4345b76f09e5248095600c5940217f6fe3e6d Mon Sep 17 00:00:00 2001 From: Peter Hurley Date: Wed, 1 Feb 2012 14:40:23 -0500 Subject: [PATCH 1/1] Match marker colorants which use non-standard string names Implementors may use different string values for prtMarkerColorantValue than the standardized string names enumerated in RFC 3805. Use case-insensitive compare when matching string names. Signed-off-by: Peter Hurley --- backend/snmp-supplies.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend/snmp-supplies.c b/backend/snmp-supplies.c index e2f6f49..913af81 100644 --- a/backend/snmp-supplies.c +++ b/backend/snmp-supplies.c @@ -790,7 +790,7 @@ backend_walk_cb(cups_snmp_t *packet, /* I - SNMP packet */ if (supplies[j].colorant == i) { for (k = 0; k < (int)(sizeof(colors) / sizeof(colors[0])); k ++) - if (!strcmp(colors[k][0], (char *)packet->object_value.string.bytes)) + if (!strcasecmp(colors[k][0], (char *)packet->object_value.string.bytes)) { strcpy(supplies[j].color, colors[k][1]); break; -- 1.7.5.4