From 2345cee33572cc5485f0b8ea190c1d8cb226bc3f Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Wed, 17 Oct 2012 22:32:48 +0100 Subject: [PATCH] Update calls to anetResolve to include buffer size --- src/sentinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentinel.c b/src/sentinel.c index ed097869..cb700872 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -426,7 +426,7 @@ sentinelAddr *createSentinelAddr(char *hostname, int port) { errno = EINVAL; return NULL; } - if (anetResolve(NULL,hostname,buf) == ANET_ERR) { + if (anetResolve(NULL,hostname,buf,sizeof(buf)) == ANET_ERR) { errno = ENOENT; return NULL; }