summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSami Kerola2019-05-18 22:46:08 +0200
committerSami Kerola2019-05-18 23:07:20 +0200
commit84f46d1f6725980697e5a442b06ececd9ceb6576 (patch)
treec6913c65d71c27702250d1d8af57390dd2f1642b /lib
parentMerge branch 'lscpu-output-fix' of https://github.com/kerolasa/util-linux (diff)
downloadkernel-qcow2-util-linux-84f46d1f6725980697e5a442b06ececd9ceb6576.tar.gz
kernel-qcow2-util-linux-84f46d1f6725980697e5a442b06ececd9ceb6576.tar.xz
kernel-qcow2-util-linux-84f46d1f6725980697e5a442b06ececd9ceb6576.zip
sfdisk: remove unnecessary size check [cppcheck]
Following warning is false positive. Size of the buffer is defined using BUFSIZ, and so the strncpy() will never overwrite the last byte that is initialized to zero in get_user_reply(). [disk-utils/sfdisk.c:137] -> [disk-utils/sfdisk.c:136]: (warning) Either the condition 'bufsz!=0' is redundant or strncpy() argument nr 3 can have invalid value. The value is -1 but the valid values are '0:'. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions