1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
This commit is contained in:
Alasdair Kergon 2002-01-07 22:01:50 +00:00
parent 5a72a50367
commit 3daa9f6e53

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));