Subject: [netatalk-admins] fixing papd - pre-patch 2 - take 2

From: Andras Kadinger <[email-masked]>
Date: Fri, 04 Sep 1998 02:16:42 +0200

There is a typo in pre2 - one excess *. The corrected pre2 follows.

Sorry.

Andras

diff -udr netatalk-1.4b2+asun2.1.0-original/etc/papd/file.c netatalk-1.4b2+asun2.1.0/etc/papd/file.c
--- netatalk-1.4b2+asun2.1.0-original/etc/papd/file.c	Tue May 20 19:35:42 1997
+++ netatalk-1.4b2+asun2.1.0/etc/papd/file.c	Fri Sep  4 01:34:25 1998
@@ -23,8 +23,8 @@
 
     /* get a line */
     for ( p = pf->pf_cur; p < pf->pf_end; p++ ) {
-	if ( *p == '\n' || *p == '\r' ) {
+	if ( *p == '\n' || *p == '\r' || ((p - pf->pf_cur)>4096) ) {
 	    break;
 	}
     }