summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 19:16:48 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 19:16:48 +0800
commit494a46196ade016b606716b36045f6b08a3234bc (patch)
tree182bca5df677b004c2f9648eaac34d3744e4e5f8
parentad1be67d05d65664c22099ada17351a78e1fd27b (diff)
Include partial content
-rw-r--r--ticket.c8
1 files 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