diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2010-01-08 14:39:58 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-09 22:43:27 -0800 |
commit | 75b7e16b6ea49d0a0da821373ae5ee3a0ee36f2e (patch) | |
tree | e7acb9546581f4cb6e2759ba87a975fee3380051 | |
parent | 64da3ae5c188b2b09bc1ed1eedca7e84c1aff940 (diff) | |
download | git-75b7e16b6ea49d0a0da821373ae5ee3a0ee36f2e.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |