projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca95cb7
)
* Adjust the memory allocation for Base64-converted messages in serv_migrate.c ....
author
Art Cancro
<ajc@citadel.org>
Tue, 14 Apr 2009 14:31:00 +0000
(14:31 +0000)
committer
Art Cancro
<ajc@citadel.org>
Tue, 14 Apr 2009 14:31:00 +0000
(14:31 +0000)
citadel/modules/migrate/serv_migrate.c
patch
|
blob
|
history
diff --git
a/citadel/modules/migrate/serv_migrate.c
b/citadel/modules/migrate/serv_migrate.c
index 4d0a35bfb3dddfc1a253b5f0f55b45df438fdbff..4441a09b9363a834bd807396cbc3426170d97825 100644
(file)
--- a/
citadel/modules/migrate/serv_migrate.c
+++ b/
citadel/modules/migrate/serv_migrate.c
@@
-268,7
+268,7
@@
void migr_export_message(long msgnum) {
CtdlFreeMessage(msg);
int encoded_len = 0;
- int encoded_alloc = smr.len * 1
39 / 100;
/* well-tested formula for predicting encoded size */
+ int encoded_alloc = smr.len * 1
4 / 10;
/* well-tested formula for predicting encoded size */
char *encoded_msg = malloc(encoded_alloc);
if (encoded_msg != NULL) {