-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
astroid: apply upstream patch to prevent crashes while adding attachm…
…ents
- Loading branch information
1 parent
c459238
commit 6ba6e2b
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 7fd64c41435a2b99fb9e0a5770a83ba30cd11450 Mon Sep 17 00:00:00 2001 | ||
From: "Stephan C. Buchert" <scb@irfu.se> | ||
Date: Wed, 14 Jun 2023 17:44:05 +0200 | ||
Subject: [PATCH] compose_message: to load as byte array, 'file' must be | ||
wrapped with copy. | ||
|
||
--- | ||
src/compose_message.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/compose_message.cc b/src/compose_message.cc | ||
index 189c20f99..329481f40 100644 | ||
--- a/src/compose_message.cc | ||
+++ b/src/compose_message.cc | ||
@@ -781,7 +781,7 @@ namespace Astroid { | ||
|
||
} else { | ||
/* load into byte array */ | ||
- refptr<Gio::File> fle = Glib::wrap (file, false); | ||
+ refptr<Gio::File> fle = Glib::wrap (file, true); | ||
refptr<Gio::FileInputStream> istr = fle->read (); | ||
|
||
refptr<Glib::Bytes> b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters