summaryrefslogtreecommitdiff
path: root/usr.sbin/dev_mkdb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2018-08-09 14:30:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2018-08-09 14:30:29 +0000
commita32c2d01ebf14686610c219b64f5afa88e7bd7fd (patch)
treefdd371a03af25b54445547f7ca7d9263684914e9 /usr.sbin/dev_mkdb
parent622f941f1522c30a8afc06476824b376f87b8346 (diff)
correct sizeof to use correct buffer, rather than another buffer (which
was the same size)
Diffstat (limited to 'usr.sbin/dev_mkdb')
-rw-r--r--usr.sbin/dev_mkdb/dev_mkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.c b/usr.sbin/dev_mkdb/dev_mkdb.c
index 57506622e07..fff6d7d334b 100644
--- a/usr.sbin/dev_mkdb/dev_mkdb.c
+++ b/usr.sbin/dev_mkdb/dev_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_mkdb.c,v 1.15 2015/10/16 13:37:44 millert Exp $ */
+/* $OpenBSD: dev_mkdb.c,v 1.16 2018/08/09 14:30:28 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
dirp = opendir(".");
(void)snprintf(dbtmp, sizeof(dbtmp), "%sdev.tmp", _PATH_VARRUN);
- (void)snprintf(dbname, sizeof(dbtmp), "%sdev.db", _PATH_VARRUN);
+ (void)snprintf(dbname, sizeof(dbname), "%sdev.db", _PATH_VARRUN);
bzero(&info, sizeof(info));
info.bsize = 8192;
db = dbopen(dbtmp, O_CREAT|O_EXLOCK|O_RDWR|O_TRUNC,