summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Andreas Gruenbacher <agruen@suse.de>2010-01-08 14:39:58 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-09 22:43:27 -0800
commit75b7e16b6ea49d0a0da821373ae5ee3a0ee36f2e (patch)
treee7acb9546581f4cb6e2759ba87a975fee3380051
parentcheckout -m: do not try to fall back to --merge from an unborn branch (diff)
downloadtgif-75b7e16b6ea49d0a0da821373ae5ee3a0ee36f2e.tar.xz
base85 debug code: Fix length byte calculation
Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--base85.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base85.c b/base85.c
index b88270f908..7b76542531 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;
}