1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00

Revert this commit

This buffer allocation must have been problem somewhere else.
(as sizeof() already has the 'extra' '\0' included).
For now reverting this commit.
This commit is contained in:
Zdenek Kabelac 2011-03-13 23:18:30 +00:00
parent 844b75f4d6
commit 612e606392
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
Version 2.02.85 -
===================================
Fix allocation of system_id buffer in volume_group structure.
Fix buffer allocation in build_dm_uuid().
Fix readlink usage inside get_primary_dev().
Use format instance mempool where possible and adequate.
Call destroy_instance for any PVs found in VG structure during vg_free call.

View File

@ -229,7 +229,7 @@ char *build_dm_uuid(struct dm_pool *mem, const char *lvid, const char *layer)
if (!layer)
layer = "";
len = sizeof(UUID_PREFIX) + strlen(lvid) + strlen(layer) + 1 + 1;
len = sizeof(UUID_PREFIX) + strlen(lvid) + strlen(layer) + 1;
if (!(dmuuid = dm_pool_alloc(mem, len))) {
log_error("build_dm_name: Allocation failed for %" PRIsize_t