summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Zakharov <dp.maxime@gmail.com>2013-08-28 15:44:40 +1000
committerantirez <antirez@gmail.com>2013-09-03 15:15:34 +0200
commitc713b1ebdd8253d13974f5d536896698c72f4f70 (patch)
tree28bc66bcd134d35695bad8139d985e07da0880eb
parent56ce06866448ccf6d08a3b0eb8802aa3749ce5a9 (diff)
downloadredis-c713b1ebdd8253d13974f5d536896698c72f4f70.tar.gz
A mistype fixed
-rw-r--r--src/replication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c
index cb455042b..3abfdf160 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -189,7 +189,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
/* Add the multi bulk reply length. */
aux[0] = '*';
- len = ll2string(aux+1,sizeof(aux-1),argc);
+ len = ll2string(aux+1,sizeof(aux)-1,argc);
aux[len+1] = '\r';
aux[len+2] = '\n';
feedReplicationBacklog(aux,len+3);