From b75c02661328e59de196a4be02f982d8ae50f12b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 14 May 2011 15:08:00 +0200 Subject: [PATCH] remove line end at 72 for base64 encode Reported-by: Michel Archambault Signed-off-by: Andy Green --- lib/base64-decode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base64-decode.c b/lib/base64-decode.c index e0206c8..428b9c6 100644 --- a/lib/base64-decode.c +++ b/lib/base64-decode.c @@ -81,6 +81,7 @@ lws_b64_encode_string(const char *in, int in_len, char *out, int out_size) done += 4; line += 4; } +#if 0 if (line >= 72) { if (done + 2 >= out_size) @@ -91,6 +92,7 @@ lws_b64_encode_string(const char *in, int in_len, char *out, int out_size) done += 2; line = 0; } +#endif } if (done + 1 >= out_size) -- 2.7.4