From: Olaf Hering Date: Thu, 10 Aug 2017 22:45:15 +0000 (-0700) Subject: Tools: hv: fix snprintf warning in kvp_daemon X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3619350cf0d630d83dedd9c0d7d297da211f5ff0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Tools: hv: fix snprintf warning in kvp_daemon Increase buffer size so that "_{-INT_MAX}" will fit. Spotted by the gcc7 snprintf checker. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 88b20e007c05..eaa3bec273c8 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c @@ -1136,7 +1136,7 @@ static int process_ip_string(FILE *f, char *ip_string, int type) int i = 0; int j = 0; char str[256]; - char sub_str[10]; + char sub_str[13]; int offset = 0; memset(addr, 0, sizeof(addr));