From 6f16191b319e7a9363fdd64e20f1351e11d70dc9 Mon Sep 17 00:00:00 2001 From: Tyrolyean Date: Tue, 28 Apr 2020 20:03:01 +0200 Subject: [PATCH] Fixed bounds error Signed-off-by: Tyrolyean --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 9956b29..43855d7 100644 --- a/src/main.c +++ b/src/main.c @@ -107,7 +107,7 @@ void receive_mail(struct mail_recv_t* rec){ rec->input_buffer+rec->body_offs, body_len); rec->input_buffer = realloc(rec->input_buffer, body_len + 1); - rec->input_buffer[body_len+1] = 0; + rec->input_buffer[body_len] = 0; rec->in_len = body_len; char* new_body = attach_files(