changeset 10635:bff95ace2bd8

6869028 Print jobs are not arranged as lp -q specified.
author sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
date Thu, 24 Sep 2009 12:02:40 +0530
parents 6f69eed61369
children 4068d6e64f8c
files usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c	Thu Sep 24 11:23:12 2009 +0530
+++ b/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c	Thu Sep 24 12:02:40 2009 +0530
@@ -317,7 +317,7 @@
 				}
 				break;
 			case 'q': {	/* Solaris priority */
-				int i = atoi(optarg);
+				int i = atoi(++entry);
 
 				i = 100 - (i * 2.5);
 				if ((i < 1) || (i > 100))