summaryrefslogtreecommitdiff
path: root/usr.sbin/bootpd/readfile.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-11-28 04:07:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-11-28 04:07:25 +0000
commit9527b2d77697af6d62e535b5dd5ccc9cb8001b63 (patch)
tree992249f085ceda95836c41e74ea1c66192d850a3 /usr.sbin/bootpd/readfile.c
parent0aed2c48e971bacac729a89b35f6dc3ed6a81714 (diff)
o use in_port_t
o be careful with string copies; use strlcpy/strlcat when sensible o ignore requests with bogus network types
Diffstat (limited to 'usr.sbin/bootpd/readfile.c')
-rw-r--r--usr.sbin/bootpd/readfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bootpd/readfile.c b/usr.sbin/bootpd/readfile.c
index a32739ea167..8f1afb6f93e 100644
--- a/usr.sbin/bootpd/readfile.c
+++ b/usr.sbin/bootpd/readfile.c
@@ -21,7 +21,7 @@ SOFTWARE.
************************************************************************/
#ifndef lint
-static char rcsid[] = "$Id: readfile.c,v 1.2 1996/06/23 10:22:26 deraadt Exp $";
+static char rcsid[] = "$Id: readfile.c,v 1.3 1998/11/28 04:07:24 millert Exp $";
#endif
@@ -344,7 +344,7 @@ readtab(force)
#ifdef DEBUG
if (debug > 3) {
char timestr[28];
- strcpy(timestr, ctime(&(st.st_mtime)));
+ strlcpy(timestr, ctime(&(st.st_mtime)), sizeof(timestr));
/* zap the newline */
timestr[24] = '\0';
report(LOG_INFO, "bootptab mtime: %s",