mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-28 02:50:41 +03:00
cov: ensure nul ends string
This commit is contained in:
parent
69f9fcfd20
commit
1d150d63c7
@ -5747,7 +5747,7 @@ static void adopt_locks(void)
|
||||
act->flags = LD_AF_ADOPT;
|
||||
act->client_id = INTERNAL_CLIENT_ID;
|
||||
act->lm_type = ls->lm_type;
|
||||
strncpy(act->vg_name, ls->vg_name, MAX_NAME);
|
||||
(void)dm_strncpy(act->vg_name, ls->vg_name, MAX_NAME);
|
||||
|
||||
log_debug("adopt lock for vg %s", act->vg_name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user