From 280d890edd60196c496f92f969ab31e5ecbcaa0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Mon, 7 Oct 2019 10:13:27 +0800 Subject: Ticket history attachment list reallocation fix --- ticket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticket.c b/ticket.c index baf3fc2..c40fe7f 100644 --- a/ticket.c +++ b/ticket.c @@ -262,7 +262,7 @@ static size_t history_l_handler(void *contents, size_t size, size_t nmemb = realloc(ticket_history->attachments , sizeof (attachment_list) - + i + 1 + + (i + 1) * sizeof (history_attachment)); attachment_list *list = ticket_history->attachments; -- cgit v1.2.3