From: Andreas Gruenbacher Date: Fri, 8 Jan 2010 13:39:58 +0000 (+0100) Subject: base85 debug code: Fix length byte calculation X-Git-Tag: v1.6.5.8~5^2^2^2^2^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75b7e16b6ea49d0a0da821373ae5ee3a0ee36f2e;p=git.git base85 debug code: Fix length byte calculation Signed-off-by: Andreas Gruenbacher Signed-off-by: Junio C Hamano --- diff --git a/base85.c b/base85.c index b88270f90..7b7654253 100644 --- a/base85.c +++ b/base85.c @@ -118,7 +118,7 @@ int main(int ac, char **av) int len = strlen(av[2]); encode_85(buf, av[2], len); if (len <= 26) len = len + 'A' - 1; - else len = len + 'a' - 26 + 1; + else len = len + 'a' - 26 - 1; printf("encoded: %c%s\n", len, buf); return 0; }