Fixed incorrect offset into array.
authorSamba Release Account <samba-bugs@samba.org>
Thu, 6 Feb 1997 17:33:03 +0000 (17:33 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Thu, 6 Feb 1997 17:33:03 +0000 (17:33 +0000)
jra@cygnus.com

source/printing/printing.c

index f026d77156eae53e9ab78eace675bcee3c3eb94b..d2071ace59470f7745875e8bb012f8ac71818190 100644 (file)
@@ -421,7 +421,7 @@ DEBUG(3,("Time reported for job %d is %s", buf->job, ctime(&buf->time)));
 #ifdef LPRNG_PRIOTOK
   /* Here I try to map the CLASS char to a number, but the number
      is never shown in Print Manager under NT anyway... Magnus. */
-  buf->priority = atoi(tok[LPRNG_PRIOTOK-('A'-1)]);
+  buf->priority = atoi(tok[LPRNG_PRIOTOK]-('A'-1));
 #else
   buf->priority = 1;
 #endif