1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +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 a54698d43c
commit ab416445c8

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;