]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/mdns.c
Merge changes from CUPS trunk, r7566.
[thirdparty/cups.git] / backend / mdns.c
index f7f78aae64fede4e8c1336424355064ef7b20539..36782679ed2e2563bcede39b2944302885cd834d 100644 (file)
@@ -262,10 +262,9 @@ main(int  argc,                            /* I - Number of command-line args */
          DNSServiceRefDeallocate(device->ref);
          device->ref = 0;
 
-          httpAssembleURIf(HTTP_URI_CODING_ALL, device_uri, sizeof(device_uri),
-                         schemes[device->type], NULL,
-                         device->cups_shared ? "cups" : "", 0,
-                         "/%s", device->fullName);
+          httpAssembleURI(HTTP_URI_CODING_ALL, device_uri, sizeof(device_uri),
+                         schemes[device->type], NULL, device->fullName, 0,
+                         device->cups_shared ? "/cups" : "/");
 
           printf("network %s \"%s\" \"%s\"\n", device_uri,
                 device->make_and_model ? device->make_and_model : "Unknown",