1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00

testing/libzookeeper: fix ppc64le build error by disabling Werror fix sprintf warning/error rather than silence

This commit is contained in:
Mike Sullivan 2019-03-08 23:36:17 +00:00 committed by Kevin Daudt
parent 2c26c44a52
commit d241bac791
2 changed files with 16 additions and 3 deletions

View file

@ -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