]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cfdisk: avoid use of VLA in combination with sizeof() [smatch scan]
authorSami Kerola <kerolasa@iki.fi>
Sat, 11 Feb 2017 19:01:08 +0000 (19:01 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Feb 2017 11:58:12 +0000 (12:58 +0100)
commite948f4b616d02576032e8e9960d1241a77fe4e8d
tree63fedd6c970e7f6e8462d4075cdbb2eaedb59b9c
parent1f519a90c15803fe262a569265bc0876b8726d4d
cfdisk: avoid use of VLA in combination with sizeof() [smatch scan]

disk-utils/cfdisk.c:1066:29: error: cannot size expression

One should use sizeof() only when variable size can be known at time of
compilation.  That is not the case with variable length arrays.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/cfdisk.c