aboutsummaryrefslogtreecommitdiff
path: root/src/json/json_mhd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json/json_mhd.c')
-rw-r--r--src/json/json_mhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json/json_mhd.c b/src/json/json_mhd.c
index b6ab2d116..2112d4646 100644
--- a/src/json/json_mhd.c
+++ b/src/json/json_mhd.c
@@ -126,7 +126,7 @@ buffer_append (struct Buffer *buf,
126{ 126{
127 if (buf->fill + data_size > max_size) 127 if (buf->fill + data_size > max_size)
128 return GNUNET_NO; 128 return GNUNET_NO;
129 if (data_size + buf->fill > buf->alloc) 129 if (buf->fill + data_size > buf->alloc)
130 { 130 {
131 char *new_buf; 131 char *new_buf;
132 size_t new_size = buf->alloc; 132 size_t new_size = buf->alloc;