1
0
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:
Alasdair Kergon 2001-11-27 23:12:06 +00:00
parent 5875c0fce5
commit b9adad95c8

View File

@ -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);