summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64da3ae)
raw | patch | inline | side by side (parent: 64da3ae)
author | Andreas Gruenbacher <agruen@suse.de> | |
Fri, 8 Jan 2010 13:39:58 +0000 (14:39 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 10 Jan 2010 06:43:27 +0000 (22:43 -0800) |
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
base85.c | patch | blob | history |
diff --git a/base85.c b/base85.c
index b88270f90844095b3d352cc4213cbebd95a7f420..7b76542531b936effd5b6b158136530ab19fc73a 100644 (file)
--- a/base85.c
+++ b/base85.c
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;
}