1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00
This commit is contained in:
Alasdair Kergon 2002-01-07 22:01:50 +00:00
parent 1c9606c824
commit 08e5b852c2

View File

@ -157,6 +157,8 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt)
if (!(dmi = malloc(len)))
return NULL;
memset(dmi, 0, len);
strncpy(dmi->version, DM_IOCTL_VERSION, sizeof(dmi->version));
dmi->data_size = len;
strncpy(dmi->name, dmt->dev_name, sizeof(dmi->name));