Patch #: 6 Type: bug fix Priority: high Affects: sites with long print user/job names Reported: Simon Brock Archived: munnari.OZ.AU mac/cap.patches/cap60.patch006 Summary: some character array lengths not very realistic File: cap60/applications/lwsrv/lwsrv.c *** applications/lwsrv/lwsrv.c.orig Tue May 7 00:21:29 1991 --- applications/lwsrv/lwsrv.c Tue May 7 01:04:43 1991 *************** *** 1,6 **** ! static char rcsid[] = "$Author: djh $ $Date: 91/03/14 13:21:21 $"; ! static char rcsident[] = "$Header: lwsrv.c,v 2.3 91/03/14 13:21:21 djh Exp $"; ! static char revision[] = "$Revision: 2.3 $"; /* * lwsrv - UNIX AppleTalk spooling program: act as a laserwriter --- 1,6 ---- ! static char rcsid[] = "$Author: djh $ $Date: 1991/05/06 15:03:58 $"; ! static char rcsident[] = "$Header: /mac/src/cap60/applications/lwsrv/RCS/lwsrv.c,v 2.4 1991/05/06 15:03:58 djh Exp djh $"; ! static char revision[] = "$Revision: 2.4 $"; /* * lwsrv - UNIX AppleTalk spooling program: act as a laserwriter *************** *** 84,91 **** export int pcopies; #endif PAGECOUNT ! private char username[80],jobname[80]; ! private char buf[100]; private int srefnum; #ifndef TEMPFILE --- 84,91 ---- export int pcopies; #endif PAGECOUNT ! private char username[128],jobname[1024]; ! private char buf[1024]; private int srefnum; #ifndef TEMPFILE *************** *** 495,505 **** long t; int argc, i; FILE *outfile; ! char tname[100],status[80]; ! char pbuf[100],rhbuf[16],jbuf[100]; ! char *childargv[20]; #ifdef LWSRV_AUFS_SECURITY ! char bbuf[64]; #endif LWSRV_AUFS_SECURITY #ifdef NeXT char dpistring[6]; --- 495,505 ---- long t; int argc, i; FILE *outfile; ! char tname[256],status[256]; ! char pbuf[256],rhbuf[16],jbuf[1024]; ! char *childargv[32]; #ifdef LWSRV_AUFS_SECURITY ! char bbuf[256]; #endif LWSRV_AUFS_SECURITY #ifdef NeXT char dpistring[6]; *************** *** 753,759 **** NewStatus(status) char *status; { ! char tmp[255]; if (*username != '\0') sprintf(tmp,"job: %s for %s; status: %s", --- 753,759 ---- NewStatus(status) char *status; { ! char tmp[1024]; if (*username != '\0') sprintf(tmp,"job: %s for %s; status: %s", *** README.orig Wed May 8 20:45:09 1991 --- README Wed May 8 20:48:21 1991 *************** *** 3,9 **** (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.00, January 1991 Introduction ------------ --- 3,9 ---- (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 6, May 1991 Introduction ------------