* Adjust the memory allocation for Base64-converted messages in serv_migrate.c ....
authorArt Cancro <ajc@citadel.org>
Tue, 14 Apr 2009 14:31:00 +0000 (14:31 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Apr 2009 14:31:00 +0000 (14:31 +0000)
citadel/modules/migrate/serv_migrate.c

index 4d0a35bfb3dddfc1a253b5f0f55b45df438fdbff..4441a09b9363a834bd807396cbc3426170d97825 100644 (file)
@@ -268,7 +268,7 @@ void migr_export_message(long msgnum) {
        CtdlFreeMessage(msg);
 
        int encoded_len = 0;
-       int encoded_alloc = smr.len * 139 / 100;        /* well-tested formula for predicting encoded size */
+       int encoded_alloc = smr.len * 14 / 10;  /* well-tested formula for predicting encoded size */
        char *encoded_msg = malloc(encoded_alloc);
 
        if (encoded_msg != NULL) {