diff options
author | gad <gad@FreeBSD.org> | 2000-11-05 03:21:57 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2000-11-05 03:21:57 +0000 |
commit | 7debc4c274eb1a9c32d875afa71a7d8de7b4b1a0 (patch) | |
tree | 42280a599c7ad5e2ac204b3f32eb38e2be560434 /usr.sbin/lpr/common_source | |
parent | ff963f8fc8108827c35bcdae69515ff48737d832 (diff) | |
download | FreeBSD-src-7debc4c274eb1a9c32d875afa71a7d8de7b4b1a0.zip FreeBSD-src-7debc4c274eb1a9c32d875afa71a7d8de7b4b1a0.tar.gz |
Fix 'lprm' processing so is more likely to work correctly when dealing
with long (>32 character) hostnames.
PR: 14978
Submitted by: Tatsuya Kudoh <cdr@cosmonet.org>
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/rmjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c index c65cf22..4450368 100644 --- a/usr.sbin/lpr/common_source/rmjob.c +++ b/usr.sbin/lpr/common_source/rmjob.c @@ -69,7 +69,7 @@ static const char rcsid[] = static char root[] = "root"; static int all = 0; /* eliminate all files (root only) */ static int cur_daemon; /* daemon's pid */ -static char current[40]; /* active control file name */ +static char current[7+MAXHOSTNAMELEN]; /* active control file name */ extern uid_t uid, euid; /* real and effective user id's */ |