diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-10 09:58:26 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-13 12:34:41 +0200 |
commit | a14371e4952f7a1b079a795c13927cea2eb196b6 (patch) | |
tree | da3ccc207715331602cc8cec0e773ba50d894b22 /daemons | |
parent | 63930f576a29d701894586c6ef1f90bf63f321d1 (diff) | |
download | lvm2-a14371e4952f7a1b079a795c13927cea2eb196b6.tar.gz |
cov: hide false positive warning
Here we have valid use case of strncpy() which just need
to fill precise buffer size - so no explicit \0 on buffer
end is needed.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/lvmlockd/lvmlockd-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c index c570b9d14..a3964c857 100644 --- a/daemons/lvmlockd/lvmlockd-core.c +++ b/daemons/lvmlockd/lvmlockd-core.c @@ -2989,6 +2989,7 @@ static int add_lockspace_thread(const char *ls_name, } if (vg_uuid) + /* coverity[buffer_size_warning] */ strncpy(ls->vg_uuid, vg_uuid, 64); if (vg_name) |