From d241bac791f54770f115199e7bb17d51df891bbf Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Fri, 8 Mar 2019 23:36:17 +0000 Subject: testing/libzookeeper: fix ppc64le build error by disabling Werror fix sprintf warning/error rather than silence --- testing/libzookeeper/fix-sprintf-overflow.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testing/libzookeeper/fix-sprintf-overflow.patch (limited to 'testing/libzookeeper/fix-sprintf-overflow.patch') diff --git a/testing/libzookeeper/fix-sprintf-overflow.patch b/testing/libzookeeper/fix-sprintf-overflow.patch new file mode 100644 index 0000000000..b0ea6db1e0 --- /dev/null +++ b/testing/libzookeeper/fix-sprintf-overflow.patch @@ -0,0 +1,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 -- cgit v1.2.3