File: 14-ftbfs-with-gcc-8.patch

package info (click to toggle)
zookeeper 3.4.13-6%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,744 kB
  • sloc: java: 60,531; xml: 18,356; cpp: 11,970; ansic: 9,192; sh: 3,112; python: 2,382; makefile: 261; perl: 114; javascript: 29
file content (13 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Address FTBFS with gcc-8 due to format-overflow
Author: tony mancill <tmancill@debian.org>
--- a/src/c/src/zookeeper.c
+++ b/src/c/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