Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/telebot-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static size_t write_data_cb(void *contents, size_t size, size_t nmemb, void *use
telebot_core_response_t *resp = (telebot_core_response_t *)userp;
size_t r_size = size * nmemb;

char *data = (char *)realloc(resp->data, resp->size + r_size);
char *data = (char *)realloc(resp->data, resp->size + r_size + 1);
if (data == NULL)
{
ERR("Failed to allocate memory, size:%u", (unsigned int)r_size);
Expand Down