summaryrefslogtreecommitdiff
path: root/usr.sbin/amd/config/mtab_file.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-10 21:07:15 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-10 21:07:15 +0000
commitdac952ba779c7d98abb2f40fd0e5cb17b44ea8d8 (patch)
treedddc63f27f9455536267f52154986906ef261f67 /usr.sbin/amd/config/mtab_file.c
parentd8a53c219e06e22f583c6b2a38a80ca759b8df5b (diff)
strlcpy, strlcat
Diffstat (limited to 'usr.sbin/amd/config/mtab_file.c')
-rw-r--r--usr.sbin/amd/config/mtab_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/config/mtab_file.c b/usr.sbin/amd/config/mtab_file.c
index 93151776427..31906aba9fc 100644
--- a/usr.sbin/amd/config/mtab_file.c
+++ b/usr.sbin/amd/config/mtab_file.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)mtab_file.c 8.1 (Berkeley) 6/6/93
- * $Id: mtab_file.c,v 1.1 1995/10/18 08:47:14 deraadt Exp $
+ * $Id: mtab_file.c,v 1.2 2002/06/10 21:07:14 itojun Exp $
*/
#include "am.h"
@@ -282,7 +282,7 @@ mntlist *mp;
plog(XLOG_WARNING, "No '/' in mtab (%s), using \".\" as tmp directory", mtab);
tmpname[0] = '.'; tmpname[1] = '\0';
}
- strcat(tmpname, "/mtabXXXXXX");
+ strlcat(tmpname, "/mtabXXXXXX", sizeof(tmpname));
mktemp(tmpname);
retries = 0;
enfile1: