summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-08-30 17:24:00 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-08-30 17:24:00 +0000
commitf5b8217554eb6fd9b0ff7b0c91896bcd73e7a441 (patch)
treeca99a954859e8a17742a1c2632e4b052d71acbd7 /usr.sbin/lpr
parent0a332fbdccea9893ffea383d7e711172ed9a92e1 (diff)
Use NAME_MAX, not MAXPATHLEN for buffer sizes since they are not
full paths (cannot contain a slash). From discussion with drosih@rpi.edu
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/common_source/displayq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c
index 960e3dab113..b1056f69e16 100644
--- a/usr.sbin/lpr/common_source/displayq.c
+++ b/usr.sbin/lpr/common_source/displayq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: displayq.c,v 1.12 2001/08/29 21:43:18 millert Exp $ */
+/* $OpenBSD: displayq.c,v 1.13 2001/08/30 17:23:59 millert Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: displayq.c,v 1.12 2001/08/29 21:43:18 millert Exp $";
+static char rcsid[] = "$OpenBSD: displayq.c,v 1.13 2001/08/30 17:23:59 millert Exp $";
#endif
#endif /* not lint */
@@ -75,8 +75,8 @@ extern int users; /* # of users in user array */
extern uid_t uid, euid;
static int col; /* column on screen */
-static char current[MAXPATHLEN]; /* current file being printed */
-static char file[MAXPATHLEN]; /* print file name */
+static char current[NAME_MAX]; /* current file being printed */
+static char file[NAME_MAX]; /* print file name */
static int first; /* first file in ``files'' column? */
static int garbage; /* # of garbage cf files */
static int lflag; /* long output option */