From 7ca11f8f9661d70d9748d70789d7e0870350a0c7 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 10 Oct 2001 13:24:16 +0000 Subject: [PATCH] o sizeof(NAME_LEN), don't do that --- lib/format1/disk-rep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/format1/disk-rep.c b/lib/format1/disk-rep.c index 446f76e4a..27d9d21aa 100644 --- a/lib/format1/disk-rep.c +++ b/lib/format1/disk-rep.c @@ -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; -- 2.43.5