2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

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: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-09-19 15:02:25 +04:00
committed by Pavel Emelyanov
parent e3eaf90e8e
commit df5f44425e

View File

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