From: msweet Date: Tue, 19 May 2015 02:36:15 +0000 (+0000) Subject: ippfind incorrectly substituted "=port" for service_port. X-Git-Tag: v2.2b1~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3363e7596fde41443b78b9b2d8300b55b0fe7c19;p=thirdparty%2Fcups.git ippfind incorrectly substituted "=port" for service_port. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12638 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-2.0.txt b/CHANGES-2.0.txt index 6e5db56c3f..2538257fb3 100644 --- a/CHANGES-2.0.txt +++ b/CHANGES-2.0.txt @@ -23,6 +23,7 @@ CHANGES IN CUPS V2.0.3 () - The ppdhtml and ppdpo utilities crashed when the -D option was used before a driver information file (STR #4627) + - ippfind incorrectly substituted "=port" for service_port. - Added Russian translation (STR #4577) diff --git a/test/ippfind.c b/test/ippfind.c index bf379f1858..10b127a49a 100644 --- a/test/ippfind.c +++ b/test/ippfind.c @@ -1978,7 +1978,7 @@ exec_program(ippfind_srv_t *service, /* I - Service */ else if (!strcmp(keyword, "service_path")) strlcpy(tptr, service->resource, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_port")) - strlcpy(tptr, port + 20, sizeof(temp) - (size_t)(tptr - temp)); + strlcpy(tptr, port + 21, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_scheme")) strlcpy(tptr, scheme + 22, sizeof(temp) - (size_t)(tptr - temp)); else if (!strncmp(keyword, "txt_", 4))