aboutsummaryrefslogtreecommitdiff
path: root/libexec/tftpd
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-04-07 08:27:45 +0000
committerBrian Somers <brian@FreeBSD.org>1999-04-07 08:27:45 +0000
commit9e9a43bdec3ff0ad37e4799b209e0d9513150a6f (patch)
treefb3cb78777ecc17ab82d96b7153224fd483b2d4c /libexec/tftpd
parent5b3f0a74e15f741303eb4c823555de3464f8ef7c (diff)
Notes
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index f1f8a9a780980..54cda4bd8e121 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)tftpd.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id: tftpd.c,v 1.12 1998/10/30 16:17:39 dg Exp $";
+ "$Id: tftpd.c,v 1.13 1999/04/06 23:05:59 brian Exp $";
#endif /* not lint */
/*
@@ -325,10 +325,10 @@ again:
}
ecode = (*pf->f_validate)(&filename, tp->th_opcode);
if (logging) {
- char host[MAXHOSTNAMELEN + 1];
+ char host[MAXHOSTNAMELEN];
- realhostname(host, sizeof host - 1, &from.sin_addr);
- host[sizeof host - 1] = '\0';
+ realhostname(host, sizeof(host) - 1, &from.sin_addr);
+ host[sizeof(host) - 1] = '\0';
syslog(LOG_INFO, "%s: %s request for %s: %s", host,
tp->th_opcode == WRQ ? "write" : "read",
filename, errtomsg(ecode));