diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-22 08:21:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-22 08:21:03 +0000 |
commit | f4157dcdc59508eeb6d7be5a9a2348bc1de796b2 (patch) | |
tree | aa1086c2b95d7fcd3877479cd899d19157069519 /sbin/nfsd | |
parent | e2f0d51cf4e08e47c64eefc6043e0126ec941016 (diff) |
strcpy, sprintf death; mpech ok
Diffstat (limited to 'sbin/nfsd')
-rw-r--r-- | sbin/nfsd/nfsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/nfsd/nfsd.c b/sbin/nfsd/nfsd.c index db151202a95..6fba9ea91ef 100644 --- a/sbin/nfsd/nfsd.c +++ b/sbin/nfsd/nfsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfsd.c,v 1.16 2002/02/16 21:27:37 millert Exp $ */ +/* $OpenBSD: nfsd.c,v 1.17 2002/05/22 08:21:02 deraadt Exp $ */ /* $NetBSD: nfsd.c,v 1.19 1996/02/18 23:18:56 mycroft Exp $ */ /* @@ -290,7 +290,7 @@ main(argc, argv, envp) (RPCAUTH_MAXSIZ - 3 * NFSX_UNSIGNED)) { kin.w1 = NFS_KERBW1(kt); kt.mbz = 0; - (void)strcpy(inst, "*"); + (void)strlcpy(inst, "*", sizeof inst); if (krb_rd_req(&kt, NFS_KERBSRV, inst, nsd.nsd_haddr, &kauth, "") == RD_AP_OK && krb_kntoln(&kauth, lnam) == KSUCCESS && |