From 30afb232cda30f31058d31df23c6a493ed0ee649 Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Tue, 6 Jun 2017 09:16:14 -0400 Subject: [PATCH] Fix bug in argument processing. --- systemv/lpstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ -- 2.47.2