if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2;
zout.dst = g_realloc (zout.dst, zout.size);
}
}
if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2 + 1;
zout.dst = g_realloc (zout.dst, zout.size);
}
}
if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2 + 1.0;
out = g_realloc (zout.dst, zout.size);
zout.dst = out;
}
if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2 + 1;
out = g_realloc (zout.dst, zout.size);
zout.dst = out;
}
if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2 + 1;
out = g_realloc (zout.dst, zout.size);
zout.dst = out;
}
if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2 + 1;
out = g_realloc (zout.dst, zout.size);
zout.dst = out;
}
if (zin.pos < zin.size && zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2;
out = g_realloc (zout.dst, zout.size);
zout.dst = out;
}
if (zout.pos == zout.size) {
/* We need to extend output buffer */
- zout.size = zout.size * 1.5 + 1.0;
+ zout.size = zout.size * 2 + 1;
body = rspamd_fstring_grow (body, zout.size);
zout.size = body->allocated;
zout.dst = body->str;