From 494a46196ade016b606716b36045f6b08a3234bc 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, 30 Sep 2019 19:16:48 +0800 Subject: Include partial content --- ticket.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ticket.c b/ticket.c index b113d78..05c6b54 100644 --- a/ticket.c +++ b/ticket.c @@ -181,14 +181,12 @@ static size_t history_handler(void *contents, size_t size, size_t nmemb #endif } else if (!strcmp(token, "Content")) { token = strtok_r(NULL, ":", &tokensaveptr); -#ifdef DEBUG - printf("Content Token: %s\n", token); -#endif - /* ticket_history->content = malloc(strlen(token)); strcpy(ticket_history->content, ++token); - */ +#ifdef DEBUG + printf("Content: %s\n", token); +#endif } else if (!strcmp(token, "Creator")) { token = strtok_r(NULL, ":", &tokensaveptr); ticket_history->creator -- cgit v1.2.3