2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

util: Move maps buffer into routine stack

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2011-11-15 11:34:11 +04:00
parent dd4d829d61
commit 54b1455e8a

3
util.c
View File

@@ -39,8 +39,6 @@
#include "crtools.h"
static char big_buffer[PATH_MAX];
void printk(const char *format, ...)
{
va_list params;
@@ -236,6 +234,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
struct vma_area *vma_area = NULL;
u64 start, end, pgoff;
char map_files_path[64];
char big_buffer[1024];
char maps_path[64];
unsigned long ino;
char r,w,x,s;