diff -r 833a9f17abd3 -r fb2056ce3c58 libpurple/protocols/oscar/odc.c --- a/libpurple/protocols/oscar/odc.c Thu Jan 21 23:55:56 2021 -0600 +++ b/libpurple/protocols/oscar/odc.c Sun Feb 07 01:33:01 2021 -0600 @@ -26,6 +26,7 @@ /* From Purple */ #include "conversation.h" #include "imgstore.h" +#include "glibcompat.h" #include "util.h" #define DIRECTIM_MAX_FILESIZE 52428800 @@ -354,7 +355,7 @@ if ((embedded_data != NULL) && (embedded_data->size == size)) { - imgid = purple_imgstore_add_with_id(g_memdup(embedded_data->data, size), size, src); + imgid = purple_imgstore_add_with_id(g_memdup2(embedded_data->data, size), size, src); /* Record the image number */ images = g_slist_append(images, GINT_TO_POINTER(imgid));