From e91014fbc56b98d69b612f7a939138127ee21e60 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: Wed, 2 Oct 2019 20:27:30 +0800 Subject: Ticket history description is already set in short format --- ticket.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ticket.c b/ticket.c index 34fd7bb..88da33c 100644 --- a/ticket.c +++ b/ticket.c @@ -235,8 +235,6 @@ static size_t history_l_handler(void *contents, size_t size, size_t nmemb strtok_r(line, ":", &tokensaveptr); token = strtok_r(NULL, ":", &tokensaveptr); - ticket_history->description = malloc(strlen(token)); - strcpy(ticket_history->description, ++token); line = strtok_r(NULL, "\n", &linesaveptr); strtok_r(line, ":", &tokensaveptr); -- cgit v1.2.3