Commit df5f4442 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

proc: use bigger buffer for one line from mountinfo

Before 256 bytes were used for that, it may be not enough.
For example it was not enough for a NFS point on my test system.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e3eaf90e
......@@ -634,7 +634,7 @@ struct mount_info *parse_mountinfo(pid_t pid)
{
struct mount_info *list = NULL;
FILE *f;
char str[256];
char str[1024];
snprintf(str, sizeof(str), "/proc/%d/mountinfo", pid);
f = fopen(str, "r");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment