X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-shortlog.c;h=4d4a3c82d6209ce3ec897dad0c69d58a329b4303;hb=da8ba5e7da01be597aa9417c563dbd516ea5f204;hp=6a3812ee18a2ca1bc251f67582ebaee3675d9af5;hpb=4a224a9bbec4e7a1a4dcb7a91e663483dc477b78;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;