Fix swap of parameters when decoding base64; this could have lead to eventually to...
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 24 Jul 2015 10:31:56 +0000 (12:31 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 24 Jul 2015 10:31:56 +0000 (12:31 +0200)
libcitadel/lib/stringbuf.c

index 134ff47..0340ce4 100644 (file)
@@ -2827,7 +2827,7 @@ int StrBufDecodeBase64To(const StrBuf *BufIn, StrBuf *BufOut)
                return -1;
 
        if (BufOut->BufSize < BufIn->BufUsed)
-               IncreaseBuf(BufOut, BufIn->BufUsed, 0);
+               IncreaseBuf(BufOut, 0, BufIn->BufUsed);
 
        BufOut->BufUsed = CtdlDecodeBase64(BufOut->buf,
                                           BufIn->buf,