mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cov: fix typo and reduce stack usage
Buffer on stack was for single LV name plus some short text around. Use of 50* was a typo so use correly 50+.
This commit is contained in:
parent
e1287c3b71
commit
86a3a0c765
@ -6558,7 +6558,7 @@ static int _lv_remove_check_in_use(struct logical_volume *lv, force_t force)
|
||||
{
|
||||
struct volume_group *vg = lv->vg;
|
||||
const char *volume_type = "";
|
||||
char buffer[50 * NAME_LEN * 2] = "";
|
||||
char buffer[50 + NAME_LEN * 2] = "";
|
||||
int active;
|
||||
int issue_discards =
|
||||
(vg->cmd->current_settings.issue_discards &&
|
||||
|
Loading…
Reference in New Issue
Block a user