diff options
author | Mike Sullivan <mksully22@gmail.com> | 2019-03-08 23:36:17 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-09 16:39:58 +0000 |
commit | d241bac791f54770f115199e7bb17d51df891bbf (patch) | |
tree | 61ac91795b90c93fdee76c6c35a97f2a063ddafc /testing/libzookeeper/fix-sprintf-overflow.patch | |
parent | 2c26c44a525d79259e6572434e980e4843303d06 (diff) | |
download | aports-d241bac791f54770f115199e7bb17d51df891bbf.tar.bz2 aports-d241bac791f54770f115199e7bb17d51df891bbf.tar.xz |
testing/libzookeeper: fix ppc64le build error by disabling Werror fix sprintf warning/error rather than silence
Diffstat (limited to 'testing/libzookeeper/fix-sprintf-overflow.patch')
-rw-r--r-- | testing/libzookeeper/fix-sprintf-overflow.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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 |