Fix compilation error

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-09-17 16:37:41 +03:00
parent af8948718c
commit 2f398702da
Signed by: davidlt
GPG Key ID: 7108702C938B13C1
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/c/src/zookeeper.c b/src/c/src/zookeeper.c
index e9d462e..82cfc84 100644
--- a/src/c/src/zookeeper.c
+++ b/src/c/src/zookeeper.c
@@ -3441,7 +3441,7 @@ int zoo_add_auth(zhandle_t *zh,const char* scheme,const char* cert,
static const char* format_endpoint_info(const struct sockaddr_storage* ep)
{
static char buf[128];
- char addrstr[128];
+ char addrstr[INET6_ADDRSTRLEN];
void *inaddr;
#ifdef WIN32
char * addrstring;

View File

@ -3,7 +3,7 @@
Name: zookeeper
Version: 3.4.9
Release: 11%{?dist}
Release: 11.0.riscv64%{?dist}
Summary: A high-performance coordination service for distributed applications
License: ASL 2.0 and BSD
URL: https://zookeeper.apache.org/
@ -19,6 +19,8 @@ Patch3: %{name}-3.4.9-server.patch
Patch4: mt_adaptor.c.patch
Patch5: 0001-cppunit-config-no-longer-exists-use-pkg-config.patch
Patch6: missing-pom.template.patch
# See: https://git-wip-us.apache.org/repos/asf?p=zookeeper.git;a=commit;h=5d187ff0adc836e6d18fd4c78188f52cdbb56c25
Patch7: zookeeper-3.4.9-5d187ff0adc836e6d18fd4c78188f52cdbb56c25.patch
BuildRequires: autoconf
@ -304,6 +306,9 @@ getent passwd zookeeper >/dev/null || \
%doc LICENSE.txt NOTICE.txt src/contrib/zkpython/README
%changelog
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.4.9-11.0.riscv64
- Fix compilation error
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild