Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
base85 debug code: Fix length byte calculation
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>
base85.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
64da3ae
)
diff --git
a/base85.c
b/base85.c
index b88270f90844095b3d352cc4213cbebd95a7f420..7b76542531b936effd5b6b158136530ab19fc73a 100644
(file)
--- 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;
}