summaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-17 18:19:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-17 18:19:18 +0100
commit3351b30b969716f83d9166025c6d940e7eedde5f (patch)
treecd8f11524a1c0609002e70a45a4c736e68676827 /src/rspamd_proxy.c
parentc0d2f5b0c3da61cbb03de38bc59b6c5279366428 (diff)
downloadrspamd-3351b30b969716f83d9166025c6d940e7eedde5f.tar.gz
rspamd-3351b30b969716f83d9166025c6d940e7eedde5f.zip
[Minor] Do not use floating point when extending buffers
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index dbf905609..66ab623f8 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -1144,7 +1144,7 @@ proxy_request_decompress (struct rspamd_http_message *msg)
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;