From 3d58a7d4e185fdd98cad23b8896cddfab0de594c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 18 Jun 1999 13:47:14 +0000 Subject: The function from64tobits() in fetchmail-5.0.4 recognizes end of string as '\r' or '='. gen_recv() zeros out the trailing '\n' or '\r', and from64tobits() didn't parse a challenge string correctly (for me.) svn path=/trunk/; revision=2506 --- base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base64.c b/base64.c index 2deebc8a..1dc533dd 100644 --- a/base64.c +++ b/base64.c @@ -90,7 +90,7 @@ int from64tobits(char *out, const char *in) } } } while - (*in != '\r' && digit4 != '='); + (*in && *in != '\r' && digit4 != '='); return (len); } -- cgit v1.2.3