projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddce54b
)
Tools: hv: fix snprintf warning in kvp_daemon
author
Olaf Hering
<olaf@aepfle.de>
Thu, 10 Aug 2017 22:45:15 +0000
(15:45 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 16:16:29 +0000
(09:16 -0700)
Increase buffer size so that "_{-INT_MAX}" will fit.
Spotted by the gcc7 snprintf checker.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c
patch
|
blob
|
history
diff --git
a/tools/hv/hv_kvp_daemon.c
b/tools/hv/hv_kvp_daemon.c
index
88b20e0
..
eaa3bec
100644
(file)
--- 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[1
0
];
+ char sub_str[1
3
];
int offset = 0;
memset(addr, 0, sizeof(addr));