tools: acrn-crashlog: update string operation in acrnprobe

Remove unsafe api strlen except the parameter is a static string.

Tracked-On: #1254
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com>
This commit is contained in:
Liu, Xinwu
2018-09-26 15:23:41 +08:00
committed by Xie, Nanlin
parent 6938caa25f
commit f25bc50e68
9 changed files with 238 additions and 193 deletions

View File

@@ -27,7 +27,7 @@
extern char *history_file;
int prepare_history(void);
void hist_raise_infoerror(char *type);
void hist_raise_infoerror(const char *type, size_t tlen);
void hist_raise_uptime(char *lastuptime);
void hist_raise_event(const char *event, const char *type, const char *log,
const char *lastuptime, const char *key);