Skip to content

Commit

Permalink
base85 debug code: Fix length byte calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Andreas Gruenbacher authored and gitster committed Jan 10, 2010
1 parent 64da3ae commit 75b7e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base85.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 75b7e16

Please sign in to comment.