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