ZOOKEEPER-3302: ZooKeeper C client does not compile on Fedora 29
ZOOKEEPER-3302: ZooKeeper C client does not compile on Fedora 29

Use a safer value as limit for strncpy, taking into account the NULL terminator (see -Werror=stringop-truncation)

See https://issues.apache.org/jira/browse/ZOOKEEPER-3302 for details about the error

Author: Enrico Olivelli <eolivelli@apache.org>

Reviewers: andor@apache.org

Closes #846 from eolivelli/fix/ZOOKEEPER-3302-build-fedora-29 and squashes the following commits:

768ee50f6 [Enrico Olivelli] add comment
21cb65c1c [Enrico Olivelli] Drop debug
0c909e336 [Enrico Olivelli] ZOOKEEPER-3302 ZooKeeper C client does not compile on Fedora 29
2bb205f8d [Enrico Olivelli] ZOOKEEPER-3302 ZooKeeper C client does not compile on Fedora 29

apache/zookeeper,apache/zookeeper,arshadmohammad/zookeeper,hanm/zookeeper,apache/zookeeper,arshadmohammad/zookeeper,arshadmohammad/zookeeper,hanm/zookeeper,hanm/zookeeper,apache/zookeeper,maoling/zookeeper,apache/zookeeper,arshadmohammad/zookeeper,maoling/zookeeper,hanm/zookeeper,maoling/zookeeper,apache/zookeeper,hanm/zookeeper,arshadmohammad/zookeeper,arshadmohammad/zookeeper,maoling/zookeeper,arshadmohammad/zookeeper,maoling/zookeeper,arshadmohammad/zookeeper,maoling/zookeeper,apache/zookeeper,maoling/zookeeper,hanm/zookeeper,hanm/zookeeper,maoling/zookeeper,hanm/zookeeper,apache/zookeeper