mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
parent
0c00af776a
commit
fdb6ef8a85
@ -1763,7 +1763,7 @@ static int _mountinfo_parse_line(const char *line, unsigned *maj, unsigned *min,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
devmapper += 12; /* skip fixed prefix */
|
devmapper += 12; /* skip fixed prefix */
|
||||||
for (i = 0; devmapper[i] && devmapper[i] != ' ' && i < sizeof(root); ++i)
|
for (i = 0; devmapper[i] && devmapper[i] != ' ' && i < sizeof(root)-1; ++i)
|
||||||
root[i] = devmapper[i];
|
root[i] = devmapper[i];
|
||||||
root[i] = 0;
|
root[i] = 0;
|
||||||
_unmangle_mountinfo_string(root, buf);
|
_unmangle_mountinfo_string(root, buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user