From: msweet Date: Fri, 18 Jul 2014 20:37:44 +0000 (+0000) Subject: Fix CGI scripts (STR #4454) X-Git-Tag: v2.2b1~549 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=13713f49a4c5433f2c7f1c85dfcae98114a97418;p=thirdparty%2Fcups.git Fix CGI scripts (STR #4454) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12051 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-1.7.txt b/CHANGES-1.7.txt index f974504879..b9e7f05068 100644 --- a/CHANGES-1.7.txt +++ b/CHANGES-1.7.txt @@ -4,6 +4,7 @@ CHANGES-1.7.txt CHANGES IN CUPS V1.7.5 - The LPD backend did not work with some versions of glibc (STR #4452) + - CGI scripts did not work (STR #4454) CHANGES IN CUPS V1.7.4 diff --git a/scheduler/client.c b/scheduler/client.c index 598df3c8aa..67a59bc14e 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -3458,12 +3458,7 @@ pipe_command(cupsd_client_t *con, /* I - Client connection */ argv[0] = command; if (options) - { - commptr = options; - if (*commptr == ' ') - commptr ++; - strlcpy(argbuf, commptr, sizeof(argbuf)); - } + strlcpy(argbuf, options, sizeof(argbuf)); else argbuf[0] = '\0';