From: mike Date: Wed, 4 May 2011 18:51:57 +0000 (+0000) Subject: Always copy URI passed to _httpResolveURI. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9c5c7fbb1cabfe42b5ef9e279eb134e12f0410c;p=thirdparty%2Fcups.git Always copy URI passed to _httpResolveURI. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9741 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/cups/http-support.c b/cups/http-support.c index c0b34d7830..e83056e0c5 100644 --- a/cups/http-support.c +++ b/cups/http-support.c @@ -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));