Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2011-05-20 22:12:17 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2011-05-20 22:12:17 +0400
commit2b43aab39f9fd84f468e7344db1d53ebf735cdc6 (patch)
tree10adee2bbcf4e91e72b8b7774be2f175ff15827c
parentf488c6063f16ae1b9c8ff2c78f955d4d610fc37b (diff)
Use the PHP allocator.
-rw-r--r--library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/library.c b/library.c
index e18391ad..229de0fd 100644
--- a/library.c
+++ b/library.c
@@ -655,7 +655,7 @@ PHPAPI RedisSock* redis_sock_create(char *host, int host_len, unsigned short por
RedisSock *redis_sock;
redis_sock = ecalloc(1, sizeof(RedisSock));
- redis_sock->host = strndup(host, host_len);
+ redis_sock->host = estrndup(host, host_len);
redis_sock->stream = NULL;
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;