From dcca4d2081e637552cb1812a7003430cd4aa47c2 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 10 Oct 2001 17:11:31 +0000 Subject: [PATCH] o sync --- lib/format1/import-export.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c index e751f2ddf..e36e62d34 100644 --- a/lib/format1/import-export.c +++ b/lib/format1/import-export.c @@ -512,9 +512,8 @@ int export_uuids(struct disk_list *dl, struct volume_group *vg) return 0; } - memset(&ul->uuid, 0, NAME_LEN); + memset(&ul->uuid, 0, sizeof(ul->uuid)); memcpy(&ul->uuid, &pvl->pv.id.uuid, ID_LEN); - ul->uuid[ID_LEN] = '\0'; list_add(&ul->list, &dl->uuids); }