From b9adad95c8aed53f09657e34c12de27025a911a1 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 27 Nov 2001 23:12:06 +0000 Subject: [PATCH] Fix a memory smash. --- lib/format1/disk-rep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/format1/disk-rep.c b/lib/format1/disk-rep.c index 09bbc4dc7..78b333756 100644 --- a/lib/format1/disk-rep.c +++ b/lib/format1/disk-rep.c @@ -172,7 +172,7 @@ static int _read_uuids(struct disk_list *data) fail; memcpy(ul->uuid, buffer, NAME_LEN); - ul->uuid[NAME_LEN] = '\0'; + ul->uuid[NAME_LEN - 1] = '\0'; list_add(&data->uuids, &ul->list);