tools: acrn-crashlog: fix build warnings with gcc8.1.1

This patch is to fix the build warning with gcc8.1.1. Most of them are
warnings for buffer overflow from snprintf and strncpy.

Signed-off-by: CHEN Gang <gang.c.chen@intel.com>
Reviewed-by: Zhi Jin <zhi.jin@intel.com>
Reviewed-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: xiaojin2 <xiaojing.liu@intel.com>
This commit is contained in:
CHEN Gang
2018-07-30 09:43:08 +08:00
committed by lijinxia
parent 6e77a8d5f1
commit 87a4abdd9d
7 changed files with 33 additions and 22 deletions

View File

@@ -32,7 +32,7 @@
#define KB (1024)
#define MB (KB * KB)
#define MAXLINESIZE (4 * KB)
#define MAXLINESIZE (PATH_MAX + 128)
#define CPBUFFERSIZE (4 * KB)
#define PAGE_SIZE (4 * KB)