summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ivy.c b/src/ivy.c
index 6502ea8..5e887d5 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -196,11 +196,10 @@ static int MsgCall (const char *message, MsgSndPtr msg, IvyClientPtr client)
TRACE( "Send matching args count %d\n",rc);
- index=1;
- while ( index<rc ) {
+ for( index=0; index < rc ; index++ )
+ {
IvyBindingMatch( msg->binding, message, index, &arglen, & arg );
err = make_message_var( &buffer, "%.*s" ARG_END , arglen, arg );
- ++index;
}
err = make_message_var( &buffer, "\n");
waiting = SocketSendRaw(client->client, buffer.data , buffer.offset);