summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-01-25 01:51:21 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-01-25 01:51:21 +0000
commitb2dc65a8d3368db5f60340d705dbc75c01cf1bc0 (patch)
tree68d471ef03d67153fc453784afa6b3ae6dcfe5bd /usr.sbin
parent5bc2f0f7891a5e346b78ca6b3d587f0cb23f96df (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index f5df2a761eaf..47e805619013 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -590,7 +590,7 @@ chkhost(f)
inet_ntoa(f->sin_addr));
(void) strncpy(fromb, hp->h_name, sizeof(fromb) - 1);
- from[sizeof(fromb) - 1] = '\0';
+ fromb[sizeof(fromb) - 1] = '\0';
from = fromb;
/* Check for spoof, ala rlogind */