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:
parent
44343a5c37
commit
e09f3fb615
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user