From: Michael Sweet Date: Tue, 6 Jun 2017 13:16:14 +0000 (-0400) Subject: Fix bug in argument processing. X-Git-Tag: v2.2.4~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30afb232cda30f31058d31df23c6a493ed0ee649;p=thirdparty%2Fcups.git Fix bug in argument processing. --- diff --git a/systemv/lpstat.c b/systemv/lpstat.c index a3474a6d7d..5d3654dbfa 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -77,7 +77,7 @@ main(int argc, /* I - Number of command-line arguments */ { for (opt = argv[i] + 1; *opt; opt ++) { - switch (argv[i][1]) + switch (*opt) { case 'D' : /* Show description */ long_status = 1; @@ -257,7 +257,6 @@ main(int argc, /* I - Number of command-line arguments */ cupsFreeDests(num_temp, temp); } - break; case 'f' : /* Show forms */