diff options
author | msglm <msglm@techchud.xyz> | 2025-01-21 21:39:07 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2025-01-21 21:39:07 -0600 |
commit | c83c26274356fd25af27a0af8d0384eae7c7de33 (patch) | |
tree | 81af90045fd20df4f9e406c6dffbf3ec13952a18 /aux-files/purple-matrix | |
parent | 26c14ceaaa55486a3769e2ec83a587b81ea5d503 (diff) | |
download | guix-msglm-c83c26274356fd25af27a0af8d0384eae7c7de33.tar.gz guix-msglm-c83c26274356fd25af27a0af8d0384eae7c7de33.tar.bz2 guix-msglm-c83c26274356fd25af27a0af8d0384eae7c7de33.zip |
fix g_memdup for matrix-purple
Diffstat (limited to 'aux-files/purple-matrix')
-rw-r--r-- | aux-files/purple-matrix/fix-g_memdup.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/aux-files/purple-matrix/fix-g_memdup.patch b/aux-files/purple-matrix/fix-g_memdup.patch new file mode 100644 index 0000000..d0ed6dc --- /dev/null +++ b/aux-files/purple-matrix/fix-g_memdup.patch @@ -0,0 +1,25 @@ +From 2452ec47427f62a9a521742c4d46bceb073229db Mon Sep 17 00:00:00 2001 +From: msglm <msglm@techchud.xyz> +Date: Sun, 19 Jan 2025 11:53:20 -0600 +Subject: [PATCH] g_memdup -> g_memdup2 + +--- + matrix-room.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/matrix-room.c b/matrix-room.c +index 34ae48b..0d7bc06 100644 +--- a/matrix-room.c ++++ b/matrix-room.c +@@ -671,7 +671,7 @@ static void _image_download_complete(MatrixConnectionData *ma, + } + if (is_known_image_type(content_type)) { + /* Excellent - something to work with */ +- int img_id = purple_imgstore_add_with_id(g_memdup(raw_body, raw_body_len), ++ int img_id = purple_imgstore_add_with_id(g_memdup2(raw_body, raw_body_len), + raw_body_len, NULL); + serv_got_chat_in(rid->conv->account->gc, g_str_hash(rid->room_id), rid->sender_display_name, + PURPLE_MESSAGE_RECV | PURPLE_MESSAGE_IMAGES, +-- +2.46.0 + |