summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_parsing.c')
-rw-r--r--src/backend/taler-merchant-httpd_parsing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_parsing.c b/src/backend/taler-merchant-httpd_parsing.c
index 50de5664..d38981da 100644
--- a/src/backend/taler-merchant-httpd_parsing.c
+++ b/src/backend/taler-merchant-httpd_parsing.c
@@ -125,7 +125,7 @@ buffer_append (struct Buffer *buf,
char *new_buf;
size_t new_size = buf->alloc;
while (new_size < buf->fill + data_size)
- new_size += 2;
+ new_size *= 2;
if (new_size > max_size)
return GNUNET_NO;
new_buf = GNUNET_malloc (new_size);