1
0
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:
Joe Thornber 2001-10-10 13:24:16 +00:00
parent e3de4ba830
commit 7ca11f8f96

View File

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