]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: use xstrncpy() for PT id [coverity scan]
authorKarel Zak <kzak@redhat.com>
Wed, 25 Jul 2018 09:25:33 +0000 (11:25 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Jul 2018 09:25:33 +0000 (11:25 +0200)
commitf665f6e43c11d4c85c2c01d7bd5a571c082e47a4
tree2d0c701fdabb2acf76d3f102e8850f61459dfff4
parente236f61d7cb030c624408a1e28da56bc5a247a42
libblkid: use xstrncpy() for PT id [coverity scan]

It's probably unnecessary change as blkid_parttable_set_id() is used
by MBR code and we use proper buffer size there, but better safe than
sorry.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/partitions.c