From a74f2af61cb83e104cc9cc5ebd9292f14b6802fa Mon Sep 17 00:00:00 2001 From: antirez Date: Sun, 22 Mar 2009 14:59:05 +0100 Subject: [PATCH] redis-cli now checks the arity of vararg commnads --- redis-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis-cli.c b/redis-cli.c index f6bf739b3..38c986b34 100644 --- a/redis-cli.c +++ b/redis-cli.c @@ -224,7 +224,7 @@ static int cliSendCommand(int argc, char **argv) { } if ((rc->arity > 0 && argc != rc->arity) || - (rc->arity < 0 && argc < rc->arity)) { + (rc->arity < 0 && argc < -rc->arity)) { fprintf(stderr,"Wrong number of arguments for '%s'\n",rc->name); return 1; }