From: Michael Sweet Date: Wed, 8 Jun 2016 18:52:57 +0000 (-0400) Subject: Mirror fix from master. X-Git-Tag: release-2.1.4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cae1ac9af0814251e2538e93d039818b35e8c77;p=thirdparty%2Fcups.git Mirror fix from master. --- diff --git a/backend/dnssd.c b/backend/dnssd.c index c82877b828..53cf7795fd 100644 --- a/backend/dnssd.c +++ b/backend/dnssd.c @@ -1194,9 +1194,9 @@ query_callback( snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;", make_and_model, model); else if (!_cups_strncasecmp(model, "designjet ", 10)) - snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s", model + 10); + snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s;", model + 10); else if (!_cups_strncasecmp(model, "stylus ", 7)) - snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s", model + 7); + snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s;", model + 7); else if ((ptr = strchr(model, ' ')) != NULL) { /* @@ -1206,7 +1206,7 @@ query_callback( memcpy(make_and_model, model, (size_t)(ptr - model)); make_and_model[ptr - model] = '\0'; - snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s", + snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;", make_and_model, ptr + 1); } }