Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-src_c_src_zookeeper.c,v 1.1 2015/10/09 13:59:56 fhajny Exp $
Fix array reference.
--- src/c/src/zookeeper.c.orig 2014-02-20 10:14:09.000000000 +0000
+++ src/c/src/zookeeper.c
@@ -570,7 +570,7 @@ int getaddrs(zhandle_t *zh)
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
- while(isspace(*host) && host != strtok_last)
+ while(isspace((unsigned char) *host) && host != strtok_last)
host++;
if ((rc = getaddrinfo(host, port_spec, &hints, &res0)) != 0) {