diff options
author | Laurent Bigonville <bigon@bigon.be> | 2016-06-08 08:59:33 +0200 |
---|---|---|
committer | Laurent Bigonville <bigon@bigon.be> | 2016-06-08 08:59:33 +0200 |
commit | 14a71491b6f42f24e25448f88f07e1180aaefcc0 (patch) | |
tree | 3567ba8cec3cb7efde58acffafdfc7516ebcf0e3 /backend/dnssd.c | |
parent | 63c5db7d3268eec39550c9ed0ca6e52d35b346ae (diff) | |
download | cups-14a71491b6f42f24e25448f88f07e1180aaefcc0.tar.gz |
Fix malformed device-id for printers found by dnssd
Add missing semicolon between printer model and command
Closes: #4835
Diffstat (limited to 'backend/dnssd.c')
-rw-r--r-- | backend/dnssd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/dnssd.c b/backend/dnssd.c index 20beaae29..0aa01a90e 100644 --- a/backend/dnssd.c +++ b/backend/dnssd.c @@ -1188,9 +1188,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) { /* @@ -1200,7 +1200,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); } } |