CtdlEncodeBase64() - only add linebreaks if told to by the caller.
[citadel.git] / citadel / server / modules / migrate / serv_migrate.c
index 994d908752ed323a4b5a660669d1d59123adbf12..a45cc017da4a6c06be0e86441b1e10e7e717e807 100644 (file)
@@ -344,7 +344,7 @@ void migr_export_message(long msgnum) {
        }
        else {
                // Once we do the encoding we know the exact size
-               encoded_len = CtdlEncodeBase64(encoded_msg, (char *)smr.ser, smr.len, 1);
+               encoded_len = CtdlEncodeBase64(encoded_msg, (char *)smr.ser, smr.len, BASE64_YES_LINEBREAKS);
 
                // Careful now.  If the message is gargantuan, trying to write multiple gigamegs in one
                // big write operation can make our transport unhappy.  So we'll chunk it up 10 KB at a time.