mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-08 16:26:42 -04:00
parent
599929b0f6
commit
de11ef704a
1 changed files with 4 additions and 2 deletions
|
|
@ -53,8 +53,10 @@ String Base64::Decode(const String& input)
|
|||
|
||||
char *outbuf = new char[input.GetLength()];
|
||||
|
||||
size_t rc, len = 0;
|
||||
while (rc = BIO_read(bio64, outbuf + len, input.GetLength() - len))
|
||||
size_t len = 0;
|
||||
int rc;
|
||||
|
||||
while ((rc = BIO_read(bio64, outbuf + len, input.GetLength() - len)) > 0)
|
||||
len += rc;
|
||||
|
||||
String ret = String(outbuf, outbuf + len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue