summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
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 */