mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o sizeof(NAME_LEN), don't do that
This commit is contained in:
parent
e3de4ba830
commit
7ca11f8f96
@ -339,8 +339,7 @@ static int _write_uuids(struct disk_list *data)
|
||||
}
|
||||
|
||||
ul = list_entry(tmp, struct uuid_list, list);
|
||||
if (dev_write(data->dev, pos,
|
||||
sizeof(NAME_LEN), ul->uuid) != NAME_LEN)
|
||||
if (dev_write(data->dev, pos, NAME_LEN, ul->uuid) != NAME_LEN)
|
||||
fail;
|
||||
|
||||
pos += NAME_LEN;
|
||||
|
Loading…
Reference in New Issue
Block a user