From ee2312358a92f6d36498b70a88c61bd806bcca9b Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 3 Jun 2003 13:18:00 +0000 Subject: [PATCH] Fixed bug in base64_encode SVN revision: 544 --- src/elog.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/elog.c b/src/elog.c index d9d649e4..4b0730de 100755 --- a/src/elog.c +++ b/src/elog.c @@ -6,6 +6,9 @@ Contents: Electronic logbook utility $Log$ + Revision 1.3 2003/06/03 13:18:00 midas + Fixed bug in base64_encode + Revision 1.2 2003/03/01 16:07:02 midas Show error if wrong username/password @@ -81,6 +84,8 @@ void base64_encode(char *s, char *d) unsigned int t, pad; pad = 3 - strlen(s) % 3; + if (pad == 3) + pad = 0; while (*s) { t = (*s++) << 16;