summaryrefslogtreecommitdiff
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:19:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:19:53 +0000
commita2f77e2c291ced0b85e36486c6ca1e2cfb53b64a (patch)
tree85f813cad0c29b4963fad90d0b56f26b307dc52a /sbin/newfs_msdos
parent46aecf92d88c8914c462878f485c11755d4f7041 (diff)
more snprintf
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index acfd782f55e..c82aec440dd 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -634,7 +634,7 @@ main(int argc, char *argv[])
(u_int)tm->tm_min));
mk4(bsx->volid, x);
mklabel(bsx->label, opt_L ? opt_L : "NO NAME");
- sprintf(buf, "FAT%u", fat);
+ snprintf(buf, sizeof buf, "FAT%u", fat);
setstr(bsx->type, buf, sizeof(bsx->type));
if (!opt_B) {
x1 += sizeof(struct bsx);