summaryrefslogtreecommitdiffstats
path: root/src/libutil/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r--src/libutil/map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index 123d31c5f..02e3913a4 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -456,7 +456,7 @@ http_map_finish (struct rspamd_http_connection *conn,
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;
}
@@ -835,7 +835,7 @@ read_map_file (struct rspamd_map *map, struct file_map_data *data,
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;
}
@@ -922,7 +922,7 @@ read_map_static (struct rspamd_map *map, struct static_map_data *data,
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;
}
@@ -1201,7 +1201,7 @@ rspamd_map_read_cached (struct rspamd_map *map, struct rspamd_map_backend *bk,
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;
}