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:
parent
2c26c44a52
commit
d241bac791
2 changed files with 16 additions and 3 deletions
11
testing/libzookeeper/fix-sprintf-overflow.patch
Normal file
11
testing/libzookeeper/fix-sprintf-overflow.patch
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue