X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=33cc4b2f647fce152397471bd7c7441fc30e6ff3;hb=1d79373523915b77cdf3f845ac415feab4949fca;hp=4bbf494c869b6938b596dbf9dcf45b9613fbf924;hpb=79d6515d49cdb0a91ff7c4a599f2d63cb5678032;p=paraslash.git diff --git a/command.c b/command.c index 4bbf494c..33cc4b2f 100644 --- a/command.c +++ b/command.c @@ -842,7 +842,7 @@ static int parse_sb_command(struct command_context *cc, struct iovec *iov) if (ret < 0) goto out; end = iov->iov_base + iov->iov_len; - for (i = 0, p = iov->iov_base; p < end; i++) + for (i = 0; p < end; i++) p += strlen(p) + 1; cc->argc = i; cc->argv = para_malloc((cc->argc + 1) * sizeof(char *));