mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix a memory smash.
This commit is contained in:
parent
5875c0fce5
commit
b9adad95c8
@ -172,7 +172,7 @@ static int _read_uuids(struct disk_list *data)
|
|||||||
fail;
|
fail;
|
||||||
|
|
||||||
memcpy(ul->uuid, buffer, NAME_LEN);
|
memcpy(ul->uuid, buffer, NAME_LEN);
|
||||||
ul->uuid[NAME_LEN] = '\0';
|
ul->uuid[NAME_LEN - 1] = '\0';
|
||||||
|
|
||||||
list_add(&data->uuids, &ul->list);
|
list_add(&data->uuids, &ul->list);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user