]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror fix from master.
authorMichael Sweet <michael.r.sweet@gmail.com>
Wed, 8 Jun 2016 18:52:57 +0000 (14:52 -0400)
committerMichael Sweet <michael.r.sweet@gmail.com>
Wed, 8 Jun 2016 18:52:57 +0000 (14:52 -0400)
backend/dnssd.c

index c82877b828bfdcd940baee44c5088d7330a7ba6b..53cf7795fd267ca87664407e611a53d75a8e936b 100644 (file)
@@ -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);
     }
   }