summaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-06 20:56:36 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-06 20:56:36 +0800
commitabaaef65e251fe5c39f01349e172e7d85c8d6788 (patch)
tree059d804ae639f1305a53f9a3f95cc9adf7daf994 /search.c
parentee08b2235cf2fefdb48eafde9990babaca4b4495 (diff)
Simplify some content of pointer syntax
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 83af684..ff7895a 100644
--- a/search.c
+++ b/search.c
@@ -31,9 +31,9 @@ static size_t ticket_handler(void *contents, size_t size, size_t nmemb
}
} while ((line = strtok(NULL, "\n")));
- *listptr = realloc(*listptr, sizeof(rtclient_search_ticket_list)
+ *listptr = realloc(list, sizeof(rtclient_search_ticket_list)
+ list->length * sizeof(rtclient_ticket));
- rtclient_search_ticket_list *list = *listptr;
+ list = *listptr;
char *linesaveptr = NULL;
line = strtok_r(lines, "\n", &linesaveptr);