diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2011-05-20 22:12:17 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2011-05-20 22:12:17 +0400 |
commit | 2b43aab39f9fd84f468e7344db1d53ebf735cdc6 (patch) | |
tree | 10adee2bbcf4e91e72b8b7774be2f175ff15827c | |
parent | f488c6063f16ae1b9c8ff2c78f955d4d610fc37b (diff) |
Use the PHP allocator.
-rw-r--r-- | library.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |