X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-shortlog.c;h=4d4a3c82d6209ce3ec897dad0c69d58a329b4303;hb=2c1d2d818895d896f706835142a75978aabdbdc9;hp=6a3812ee18a2ca1bc251f67582ebaee3675d9af5;hpb=a7c1ef3e03985c70aeb0825634471bb6240f4fcb;p=git.git diff --git a/builtin-shortlog.c b/builtin-shortlog.c index 6a3812ee1..4d4a3c82d 100644 --- a/builtin-shortlog.c +++ b/builtin-shortlog.c @@ -56,7 +56,7 @@ static void insert_one_record(struct shortlog *log, /* copy author name to namebuf, to support matching on both name and email */ memcpy(namebuf, author, boemail - author); len = boemail - author; - while(len > 0 && isspace(namebuf[len-1])) + while (len > 0 && isspace(namebuf[len-1])) len--; namebuf[len] = 0;