]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix malformed device-id for printers found by dnssd
authorLaurent Bigonville <bigon@bigon.be>
Wed, 8 Jun 2016 06:59:33 +0000 (08:59 +0200)
committerLaurent Bigonville <bigon@bigon.be>
Wed, 8 Jun 2016 06:59:33 +0000 (08:59 +0200)
Add missing semicolon between printer model and command

Closes: #4835
backend/dnssd.c

index 20beaae29297b1d4fe547d9991b1101df7e306a9..0aa01a90e7bde2626bd7180739fe094bb38926f1 100644 (file)
@@ -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);
     }
   }