From 91d5879ca9754b6762660ae3e977f9edf1c726bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dams=20Nad=C3=A9?= Date: Wed, 15 Mar 2006 21:45:39 +0000 Subject: [PATCH] irssi: fix for invalid pointer --- irssi-0.8.10-glibc-invalid-pointer.patch | 12 ++++++++++++ irssi.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 irssi-0.8.10-glibc-invalid-pointer.patch diff --git a/irssi-0.8.10-glibc-invalid-pointer.patch b/irssi-0.8.10-glibc-invalid-pointer.patch new file mode 100644 index 0000000..8e4ccf1 --- /dev/null +++ b/irssi-0.8.10-glibc-invalid-pointer.patch @@ -0,0 +1,12 @@ +--- src/irc/dcc/dcc.c 2005-12-25 02:12:48.000000000 -0600 ++++ src/irc/dcc/dcc.c 2005-12-25 02:12:55.000000000 -0600 +@@ -58,8 +58,8 @@ + + pos = gslist_find_string(dcc_types, type); + if (pos != NULL) { +- dcc_types = g_slist_remove(dcc_types, pos->data); + g_free(pos->data); ++ dcc_types = g_slist_remove(dcc_types, pos->data); + } + } + diff --git a/irssi.spec b/irssi.spec index 6460288..cffdca3 100644 --- a/irssi.spec +++ b/irssi.spec @@ -3,12 +3,13 @@ Summary: Modular text mode IRC client with Perl scripting Name: irssi Version: 0.8.10 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL Group: Applications/Communications URL: http://irssi.org/ Source0: http://irssi.org/files/irssi-%{version}.tar.bz2 +Patch0: irssi-0.8.10-glibc-invalid-pointer.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: ncurses-devel openssl-devel zlib-devel BuildRequires: pkgconfig glib2-devel @@ -36,6 +37,7 @@ being maintained. %prep %setup -q -n %{name}-%{version} +%patch0 -p0 %build %configure --enable-ipv6 --with-textui \ @@ -83,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/irssi %changelog +* Wed Mar 15 2006 Dams - 0.8.10-4 +- Added patch from Saleem Abdulrasool to fix invalid pointer. + * Sat Jan 28 2006 Dams - 0.8.10-3 - Fixed changelog -_-