papd bug


Subject: papd bug
From: Dung Nguyen (ntd@adb.fr)
Date: Tue Dec 20 1994 - 09:08:05 EST


I found a bug in papd that shows up with the LaserWriter 8 driver:
papd creates empty print jobs because it fails to detect STARTJOB doc.

*** processjob.c.orig Wed Sep 8 16:34:52 1993
--- processjob.c Tue Dec 20 14:57:29 1994
***************
*** 303,309 ****
                                && !isspace( *keyword )) {
                            ++keyword; /* skip rest of first word */
                        }
! while ( isspace ( *keyword )) {
                            ++keyword; /* skip white space */
                        }
                        if ( *keyword == EOL || *keyword == NEWLINE ) {
--- 303,310 ----
                                && !isspace( *keyword )) {
                            ++keyword; /* skip rest of first word */
                        }
! while ( *keyword != EOL && *keyword != NEWLINE
! && isspace ( *keyword )) {
                            ++keyword; /* skip white space */
                        }
                        if ( *keyword == EOL || *keyword == NEWLINE ) {



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:20:59 EST