diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-21 03:30:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-21 03:30:22 +0000 |
commit | 392745f91df219566154c00a216cb986dcb44574 (patch) | |
tree | 60ac88a449b21983d893e1e6a937d36e1319a616 /usr.sbin/dhcp/statmsg | |
parent | 22bb7b9dc24dd3aa601fe21b0fbedda78cd80e7c (diff) |
more strlcpy
Diffstat (limited to 'usr.sbin/dhcp/statmsg')
-rw-r--r-- | usr.sbin/dhcp/statmsg/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcp/statmsg/main.c b/usr.sbin/dhcp/statmsg/main.c index 9cbe88e2aed..162719b6040 100644 --- a/usr.sbin/dhcp/statmsg/main.c +++ b/usr.sbin/dhcp/statmsg/main.c @@ -44,7 +44,7 @@ #ifndef lint static char copyright[] = -"$Id: main.c,v 1.2 2002/06/10 00:39:46 itojun Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: main.c,v 1.3 2002/06/21 03:30:21 deraadt Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -90,7 +90,7 @@ int main (argc, argv, envp) /* XXX for now... */ memset(&name, 0, sizeof(name)); name.sun_family = PF_UNIX; - strcpy (name.sun_path, "/var/run/sysconf"); + strlcpy (name.sun_path, "/var/run/sysconf", sizeof (name.sun_path)); name.sun_len = ((sizeof name) - (sizeof name.sun_path) + strlen (name.sun_path)); |