]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
wrapper.c: Fix buffer not null terminated Coverity warning
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 7 Jan 2020 18:53:23 +0000 (11:53 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 8 Jan 2020 15:01:39 +0000 (08:01 -0700)
commitcdd4b115b10c3492df0a27880e4d8d41d167fe82
treee7799ea5dff8399cf5b39c4482f1c9e7b7e36a47
parent91cccef4b472da3ef90ed4a31bc68717a491139a
wrapper.c: Fix buffer not null terminated Coverity warning

This patch fixes the following Coverity warning:

CID 1412155 (#1 of 1): Buffer not null terminated
(BUFFER_SIZE_WARNING)4. buffer_size_warning: Calling strncpy with a
maximum size argument of 100 bytes on destination array val->value of
size 100 bytes might leave the destination string unterminated.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/wrapper.c