summaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.c b/search.c
index 5a73d51..4b8c5d0 100644
--- a/search.c
+++ b/search.c
@@ -31,7 +31,7 @@ static size_t ticket_handler(void *contents, size_t size, size_t nmemb
} while ((line = strtok(NULL, "\n")));
rtclient_search_ticket_list *ptr = realloc(*listptr
- , sizeof(*listptr)
+ , sizeof(rtclient_search_ticket_list)
+ (*listptr)->length * sizeof(rtclient_ticket));
*listptr = ptr;
rtclient_search_ticket_list *list = *listptr;