Patch #: 50 Type: bug fix Priority: medium Affects: sites using papif on busy networks Reported: Brian H. Powell Archived: munnari.OZ.AU mac/cap.patches/cap60.patch050 Application: 'cd cap60; patch -p < cap60.patches/cap60.patch050' Summary: slight code changes to avoid core dumps File: cap60/applications/papif/papif.c *** applications/papif/papif.c.orig Wed Aug 28 00:33:05 1991 --- applications/papif/papif.c Wed Aug 28 00:48:54 1991 *************** *** 1,6 **** ! static char rcsid[] = "$Author: djh $ $Date: 91/03/20 16:56:56 $"; ! static char rcsident[] = "$Header: papif.c,v 2.3 91/03/20 16:56:56 djh Exp $"; ! static char revision[] = "$Revision: 2.3 $"; /* * papif - UNIX AppleTalk test program: simple line printer input filter --- 1,6 ---- ! static char rcsid[] = "$Author: djh $ $Date: 1991/08/27 14:48:38 $"; ! static char rcsident[] = "$Header: /mac/src/cap60/applications/papif/RCS/papif.c,v 2.4 1991/08/27 14:48:38 djh Rel djh $"; ! static char revision[] = "$Revision: 2.4 $"; /* * papif - UNIX AppleTalk test program: simple line printer input filter *************** *** 1067,1078 **** if (rcomp == noErr && rlen > 0) { pr_buf[rlen] = '\0'; /* tie off string */ if (!started) { - started = 1; p = index(pr_buf, '*'); /* look for marker */ ! if (p != NULL) strcpy(buf, p+1); } else ! strcat(buf, p); } if (eof) break; --- 1067,1079 ---- if (rcomp == noErr && rlen > 0) { pr_buf[rlen] = '\0'; /* tie off string */ if (!started) { p = index(pr_buf, '*'); /* look for marker */ ! if (p != NULL) { strcpy(buf, p+1); + started = 1; + } } else ! strcat(buf, pr_buf); } if (eof) break; *** README.orig Wed Aug 28 00:50:23 1991 --- README Wed Aug 28 00:51:27 1991 *************** *** 3,9 **** (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 49, August 1991 Introduction ------------ --- 3,9 ---- (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 50, August 1991 Introduction ------------