Fix base64 encoder.
authorMarcello Stanisci <stanisci.m@gmail.com>
Thu, 25 Oct 2018 16:13:41 +0000 (18:13 +0200)
committerMarcello Stanisci <stanisci.m@gmail.com>
Thu, 25 Oct 2018 16:13:41 +0000 (18:13 +0200)
Eliminating the appending of a '=' symbol in the
last position of the output string.

src/util/strings.c

index e3bdadd39be4756d198db599a8bfa68c2f9ed920..b7a7fcb8b245b014df0b43445ed2993eb10a44bc 100644 (file)
@@ -1998,7 +1998,6 @@ GNUNET_STRINGS_base64_encode (const void *in,
       opt[ret++] = FILLCHAR;
     }
   }
-  opt[ret++] = FILLCHAR;
   *output = opt;
   return ret;
 }