Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a30c78fd8619fddeeed93253bf86add9c15f080b

commit a30c78fd8619fddeeed93253bf86add9c15f080b
Author: Priyank <[EMAIL PROTECTED]>
Date:   Sun Mar 2 19:16:54 2008 +0530

xchat-systray-integration-2.4.5-5-i686
* Added a patch to fix crashes while launching some applications from this 
plugin.
* Closes #1679

diff --git a/source/xapps-extra/xchat-systray-integration/FrugalBuild 
b/source/xapps-extra/xchat-systray-integration/FrugalBuild
index cb2bdf2..7767760 100644
--- a/source/xapps-extra/xchat-systray-integration/FrugalBuild
+++ b/source/xapps-extra/xchat-systray-integration/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=xchat-systray-integration
pkgver=2.4.5
-pkgrel=4
+pkgrel=5
pkgdesc="Systray integration for xchat"
_F_sourceforge_dirname="xchat2-plugins"
_F_sourceforge_ext="-src.tar.gz"
@@ -14,11 +14,14 @@ url="http://www.blight.tk/";
depends=('xchat')
groups=('xapps-extra')
archs=('i686' 'x86_64')
-sha1sums=('d7bad0f60c1944ce385e5799eb08a45a081365ab')
+source=([EMAIL PROTECTED] double_free_fix.diff)
+sha1sums=('d7bad0f60c1944ce385e5799eb08a45a081365ab' \
+          'ff206f52880a12664cf9e307b667d9ef49ea7ee2')

build()
{
Fcd
+       Fpatch double_free_fix.diff
[ "$CARCH" == "x86_64" ] && CFLAGS="$CFLAGS -fPIC -DPIC"
Fsed "CFLAGS = .*" "CFLAGS=${CFLAGS}" Makefile
Fmake
diff --git a/source/xapps-extra/xchat-systray-integration/double_free_fix.diff 
b/source/xapps-extra/xchat-systray-integration/double_free_fix.diff
new file mode 100644
index 0000000..88cb25d
--- /dev/null
+++ b/source/xapps-extra/xchat-systray-integration/double_free_fix.diff
@@ -0,0 +1,27 @@
+diff -Naur xchat-systray-integration-2.4.5/src/menu.c 
xchat-systray-integration-2.4.5.new/src/menu.c
+--- xchat-systray-integration-2.4.5/src/menu.c 2004-04-30 18:08:10.000000000 
+0530
++++ xchat-systray-integration-2.4.5.new/src/menu.c     2008-03-02 
19:12:25.000000000 +0530
+@@ -10,7 +10,6 @@
+       char command[156]="exec ";
+       strcat(command, bpath);
+       xchat_command( ph, command );
+-      g_free(command);
+
+ }
+
+@@ -20,7 +19,6 @@
+       char command[156]="exec ";
+       strcat(command, epath);
+       xchat_command( ph, command );
+-      g_free(command);
+
+ }
+
+@@ -30,7 +28,6 @@
+       char command[156]="exec ";
+       strcat(command, ppath);
+       xchat_command( ph, command );
+-      g_free(command);
+
+ }
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to