diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index f5df2a761ea..47e80561901 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 */