From: Michael R Sweet Date: Fri, 5 Apr 2024 18:13:47 +0000 (-0400) Subject: Use cupsCopyString instead of strlcpy. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44957b002c146f140156ecb58cc18e2c5996c6cb;p=thirdparty%2Fcups.git Use cupsCopyString instead of strlcpy. --- diff --git a/cups/dest-options.c b/cups/dest-options.c index a6d8339f22..434937349b 100644 --- a/cups/dest-options.c +++ b/cups/dest-options.c @@ -797,7 +797,7 @@ cupsCopyDestInfo( if ((uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options)) == NULL || httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { - strlcpy(host, "localhost", sizeof(host)); + cupsCopyString(host, "localhost", sizeof(host)); port = cg->ipp_port; }