mirror of https://github.com/Icinga/icinga2.git
parent
9376a37806
commit
8798c34283
|
@ -53,8 +53,10 @@ String Base64::Decode(const String& input)
|
||||||
|
|
||||||
char *outbuf = new char[input.GetLength()];
|
char *outbuf = new char[input.GetLength()];
|
||||||
|
|
||||||
size_t rc, len = 0;
|
size_t len = 0;
|
||||||
while (rc = BIO_read(bio64, outbuf + len, input.GetLength() - len))
|
int rc;
|
||||||
|
|
||||||
|
while ((rc = BIO_read(bio64, outbuf + len, input.GetLength() - len)) > 0)
|
||||||
len += rc;
|
len += rc;
|
||||||
|
|
||||||
String ret = String(outbuf, outbuf + len);
|
String ret = String(outbuf, outbuf + len);
|
||||||
|
|
Loading…
Reference in New Issue