diff options
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/lprm/lprm.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index e83e403e68f..b2fd1fef27d 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printjob.c,v 1.20 2000/06/28 23:52:36 deraadt Exp $ */ +/* $OpenBSD: printjob.c,v 1.21 2001/02/15 05:20:35 deraadt Exp $ */ /* $NetBSD: printjob.c,v 1.9.4.3 1996/07/12 22:31:39 jtc Exp $ */ /* @@ -108,7 +108,7 @@ static char fromhost[32]; /* user's host machine */ static char indent[10] = "-i0"; static char jobname[100]; /* job or file name */ static char length[10] = "-l"; /* page length in lines */ -static char logname[32]; /* user's login name */ +static char logname[MAXLOGNAME]; /* user's login name */ static char pxlength[10] = "-y"; /* page length in pixels */ static char pxwidth[10] = "-x"; /* page width in pixels */ static char tempfile[] = "errsXXXXXXXXXX"; /* file name for filter output */ diff --git a/usr.sbin/lpr/lprm/lprm.c b/usr.sbin/lpr/lprm/lprm.c index 4c61b0e1ad6..0242948456a 100644 --- a/usr.sbin/lpr/lprm/lprm.c +++ b/usr.sbin/lpr/lprm/lprm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lprm.c,v 1.5 1997/01/17 16:12:47 millert Exp $ */ +/* $OpenBSD: lprm.c,v 1.6 2001/02/15 05:20:35 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lprm.c,v 1.5 1997/01/17 16:12:47 millert Exp $"; +static char rcsid[] = "$OpenBSD: lprm.c,v 1.6 2001/02/15 05:20:35 deraadt Exp $"; #endif #endif /* not lint */ @@ -82,7 +82,7 @@ char *user[MAXUSERS]; /* users to process */ int users; /* # of users in user array */ uid_t uid, euid; /* real and effective user id's */ -static char luser[16]; /* buffer for person */ +static char luser[MAXLOGNAME]; /* buffer for person */ void usage __P((void)); |