Fix soundcloud curl callback
This also addresses C++17 compatibility.
This commit is contained in:
parent
fe386e51b1
commit
4cd01a5f6e
@ -35,7 +35,7 @@ using namespace PBD;
|
||||
static size_t
|
||||
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;
|
||||
|
||||
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user