-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Zookeeper patch to fix format error.
This is a backport of: apache/zookeeper#559 Review: https://reviews.apache.org/r/68370/
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,28 @@ index 7dc7878..9c62991 100644 | |
#else | ||
volatile int32_t result; | ||
_asm | ||
From 4343ef1db40ebe2a744326000eff725deb55f97f Mon Sep 17 00:00:00 2001 | ||
From: Kapil Arya <[email protected]> | ||
Date: Thu, 16 Aug 2018 15:53:53 -0400 | ||
Subject: [PATCH] Backported a format error fix. | ||
|
||
This patch backports https://github.com/apache/zookeeper/pull/559. | ||
--- | ||
src/c/src/zookeeper.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/c/src/zookeeper.c b/src/c/src/zookeeper.c | ||
index 1ba90afa..a4c28e36 100644 | ||
--- a/src/c/src/zookeeper.c | ||
+++ b/src/c/src/zookeeper.c | ||
@@ -3440,7 +3440,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; | ||
-- | ||
2.18.0 |