From 11fdb546bfc83688ac91c3a06a31a7510cabb541 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 12 Jun 2009 16:27:27 +0000 Subject: [PATCH] Fix typo and use httpAssembleURI instead of snprintf when generating final printer-uri value. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@8709 7a7537e8-13f0-0310-91df-b6672ffda945 --- backend/ipp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/ipp.c b/backend/ipp.c index 15f9f6565..0f1223d58 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -656,7 +656,8 @@ main(int argc, /* I - Number of command-line args */ * might contain username:password information... */ - snprintf(uri, sizeof(uri), "%s://%s:%d%s", method, hostname, port, resource); + httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), scheme, NULL, hostname, + port, resource); /* * First validate the destination and see if the device supports multiple -- 2.39.5