summaryrefslogtreecommitdiff
path: root/libexec/bootpd/bootpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/bootpd/bootpd.c')
-rw-r--r--libexec/bootpd/bootpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/bootpd/bootpd.c b/libexec/bootpd/bootpd.c
index 68e35d50223a..99d035146f80 100644
--- a/libexec/bootpd/bootpd.c
+++ b/libexec/bootpd/bootpd.c
@@ -19,7 +19,7 @@ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
- $Id: bootpd.c,v 1.7 1997/05/11 14:27:03 phk Exp $
+ $Id: bootpd.c,v 1.8 1998/06/03 20:01:28 joerg Exp $
************************************************************************/
@@ -833,7 +833,7 @@ HW addr type is IEEE 802. convert to %s and check again\n",
* daemon chroot directory (i.e. /tftpboot).
*/
if (hp->flags.tftpdir) {
- strcpy(realpath, hp->tftpdir->string);
+ snprintf(realpath, sizeof(realpath), "%s", hp->tftpdir->string);
clntpath = &realpath[strlen(realpath)];
} else {
realpath[0] = '\0';