From: deraadt Date: Thu, 9 Aug 2018 14:30:28 +0000 (+0000) Subject: correct sizeof to use correct buffer, rather than another buffer (which X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=51adbfdc1e8b62c99fee38d261d05a6426ebf659;p=openbsd correct sizeof to use correct buffer, rather than another buffer (which was the same size) --- 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,