summaryrefslogtreecommitdiffstats
path: root/sendlib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-17 11:50:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-17 11:50:00 +0000
commit00f5b95a1c92114ff11b2826315d5fe910019e5c (patch)
tree5f7b92edec81c88ff446bcd129b2f4cd3c5e5559 /sendlib.c
parent152efdb28c2e871ab87781e519091c86201cd48d (diff)
Fix the base64 encoder. The current code would produce slightly
unpredictible output which leads to bad signatures.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sendlib.c b/sendlib.c
index 3e685aba..787ed368 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -302,7 +302,7 @@ static void encode_base64 (FILE * fin, FILE *fout, int istext)
{
int ch, ch1 = EOF;
- b64_num = 0;
+ b64_num = b64_linelen = 0;
while((ch = fgetc(fin)) != EOF)
{