btrfs-progs: fix a buffer overflow during mkfs
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 22 Jan 2008 16:32:06 +0000 (11:32 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 22 Jan 2008 16:32:06 +0000 (11:32 -0500)
commit4408248634ecf2b4c1e246b9fd0c770984f69aae
treeabd44ce0c2af1d82fa411ff25cfe4a7116f5e551
parent7c2844538143aebb26f0436c2760172017901536
btrfs-progs: fix a buffer overflow during mkfs

Using strncpy avoids a 1 byte overflow into the next field
of the struct.  The overflow is harmless, but does
trip automated tools.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
---
 utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils.c