ii

git clone https://orangeshoelaces.net/git/ii.git

f9fa7b9686b50604b82d71240b1009d38029e57c

Author: Anselm R. Garbe on 03/13/2006

Committer: Anselm R. Garbe on 03/13/2006

fixing retval of tokenize

Stats

ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index 88651bc..da42e80 100644
--- a/ii.c
+++ b/ii.c
@@ -208,7 +208,7 @@ static size_t tokenize(char **result, size_t reslen, char *str, char delim)
 	}
 	if(i<reslen)
 		result[i++] = p;
-	return i + 2;				/* number of tokens */
+	return i;				/* number of tokens */
 }
 
 static void print_out(char *channel, char *buf)