aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libzookeeper/fix-sprintf-overflow.patch
blob: b0ea6db1e0c4d68badf12075eacaf0e46d5e2708 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/zookeeper.c
+++ b/src/zookeeper.c
@@ -3477,7 +3477,7 @@
 
 static const char* format_endpoint_info(const struct sockaddr_storage* ep)
 {
-    static char buf[128];
+    static char buf[128 + 6];	// include space for the port :xxxxx
     char addrstr[128];
     void *inaddr;
 #ifdef WIN32