diff options
author | marcus <marcus@FreeBSD.org> | 2005-07-25 00:58:24 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-07-25 00:58:24 +0800 |
commit | 559c9e5bc76ef43083d79121a2dc1f035dd1e158 (patch) | |
tree | 8c4bbdb9f5e7b4b7b600394276102a8dc66e8a1b /mail/balsa | |
parent | d56dd398f432f77a120a6811cd58943f4471bdea (diff) | |
download | freebsd-ports-gnome-559c9e5bc76ef43083d79121a2dc1f035dd1e158.tar.gz freebsd-ports-gnome-559c9e5bc76ef43083d79121a2dc1f035dd1e158.tar.zst freebsd-ports-gnome-559c9e5bc76ef43083d79121a2dc1f035dd1e158.zip |
Fix a crash when trying to add attachments.
Reported by: lioux
Diffstat (limited to 'mail/balsa')
-rw-r--r-- | mail/balsa/Makefile | 1 | ||||
-rw-r--r-- | mail/balsa/files/patch-src_sendmsg-window.c | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/mail/balsa/Makefile b/mail/balsa/Makefile index 5bcf560169c3..75eb8bcef5d8 100644 --- a/mail/balsa/Makefile +++ b/mail/balsa/Makefile @@ -7,6 +7,7 @@ PORTNAME= balsa PORTVERSION= 2.3.4 +PORTREVISION= 1 CATEGORIES= mail gnome MASTER_SITES= http://www.theochem.kth.se/~pawsa/balsa/ DISTNAME= balsa-${PORTVERSION} diff --git a/mail/balsa/files/patch-src_sendmsg-window.c b/mail/balsa/files/patch-src_sendmsg-window.c new file mode 100644 index 000000000000..1a1494fd507e --- /dev/null +++ b/mail/balsa/files/patch-src_sendmsg-window.c @@ -0,0 +1,29 @@ +--- src/sendmsg-window.c.orig Sun Jul 24 12:51:49 2005 ++++ src/sendmsg-window.c Sun Jul 24 12:52:57 2005 +@@ -2009,7 +2009,7 @@ add_attachment(BalsaSendmsg * bsmsg, gch + ATTACH_ICON_COLUMN, pixbuf, + ATTACH_TYPE_COLUMN, content_type, + ATTACH_MODE_COLUMN, attach_data->mode, +- ATTACH_SIZE_COLUMN, attach_stat.st_size, ++ ATTACH_SIZE_COLUMN, (guint64) attach_stat.st_size, + ATTACH_DESC_COLUMN, utf8name, + -1); + g_object_unref(attach_data); +@@ -2659,7 +2659,7 @@ render_attach_size(GtkTreeViewColumn *co + GtkTreeModel *model, GtkTreeIter *iter, gpointer data) + { + gint mode; +- gint size; ++ guint64 size; + gchar *sstr; + + gtk_tree_model_get(model, iter, ATTACH_MODE_COLUMN, &mode, +@@ -2780,7 +2780,7 @@ create_info_pane(BalsaSendmsg * bsmsg, S + GDK_TYPE_PIXBUF, + G_TYPE_STRING, + G_TYPE_INT, +- G_TYPE_INT, ++ G_TYPE_UINT64, + G_TYPE_STRING); + + bsmsg->attachments[1] = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); |