Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
base85 debug code: Fix length byte calculation
[gitweb.git]
/
base85.c
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;
}