1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

avatar: make _avatar_request_item_result_handler safer

This commit is contained in:
Michael Vetter 2021-03-25 16:35:43 +01:00
parent 44343a5c37
commit e09f3fb615

View File

@ -224,6 +224,10 @@ _avatar_request_item_result_handler(xmpp_stanza_t* const stanza, void* const use
}
char* buf = xmpp_stanza_get_text(st_data);
if (!buf) {
return 1;
}
gsize size;
gchar* de = (gchar*)g_base64_decode(buf, &size);
free(buf);