mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
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:
@@ -23,10 +23,14 @@
|
||||
#define __PROPERTY_H__
|
||||
#include "load_conf.h"
|
||||
|
||||
#define VERSION_SIZE 256
|
||||
#define VERSION_SIZE 256
|
||||
/* UUID_SIZE contains the UUID number, dashes and some buffer*/
|
||||
#define UUID_SIZE 48
|
||||
/* General BUILD_VERSION like 23690 */
|
||||
#define BUILD_VERSION_SIZE 16
|
||||
|
||||
char guuid[VERSION_SIZE];
|
||||
char gbuildversion[VERSION_SIZE];
|
||||
char guuid[UUID_SIZE];
|
||||
char gbuildversion[BUILD_VERSION_SIZE];
|
||||
|
||||
int init_properties(struct sender_t *sender);
|
||||
int swupdated(struct sender_t *sender);
|
||||
|
||||
Reference in New Issue
Block a user