]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Always copy URI passed to _httpResolveURI.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 4 May 2011 18:51:57 +0000 (18:51 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 4 May 2011 18:51:57 +0000 (18:51 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9741 7a7537e8-13f0-0310-91df-b6672ffda945

cups/http-support.c

index c0b34d78308db9c333ad5ce8302428c2a6f9f0da..e83056e0c50353f1896ce21a27510171b9dba88e 100644 (file)
@@ -1630,6 +1630,15 @@ _httpResolveURI(
     if ((options & _HTTP_RESOLVE_STDERR) && !uri)
       _cupsLangPrintFilter(stderr, "ERROR", _("Unable to find printer."));
   }
+  else
+  {
+   /*
+    * Nothing more to do...
+    */
+
+    strlcpy(resolved_uri, uri, resolved_size);
+    uri = resolved_uri;
+  }
 
   DEBUG_printf(("5_httpResolveURI: Returning \"%s\"", uri));