summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-07 10:13:27 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-07 10:13:27 +0800
commit280d890edd60196c496f92f969ab31e5ecbcaa0b (patch)
tree8d3a5a3fd0681d2c3510833d43182dfed726fac5
parente2ef30abf57dc9d94ec15e5a56a2568f0aa1e06b (diff)
Ticket history attachment list reallocation fix
-rw-r--r--ticket.c2
1 files changed, 1 insertions, 1 deletions
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;