13
0

Fix soundcloud curl callback

This also addresses C++17 compatibility.
This commit is contained in:
Robin Gareus 2022-11-22 17:52:40 +01:00
parent fe386e51b1
commit 4cd01a5f6e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -35,7 +35,7 @@ using namespace PBD;
static size_t static size_t
WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
{ {
register int realsize = (int)(size * nmemb); size_t realsize = (size * nmemb);
struct MemoryStruct *mem = (struct MemoryStruct *)data; struct MemoryStruct *mem = (struct MemoryStruct *)data;
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1); mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);