Add patch from upstream cvs #74705.
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Jan 2005 22:14:12 +0000 (22:14 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 Jan 2005 22:14:12 +0000 (22:14 +0000)
net-im/linpopup/ChangeLog
net-im/linpopup/Manifest
net-im/linpopup/files/2.0.4-overflow.patch [new file with mode: 0644]
net-im/linpopup/files/digest-linpopup-2.0.4-r1 [moved from net-im/linpopup/files/digest-linpopup-2.0.4 with 100% similarity]
net-im/linpopup/linpopup-2.0.2.ebuild
net-im/linpopup/linpopup-2.0.4-r1.ebuild [moved from net-im/linpopup/linpopup-2.0.4.ebuild with 87% similarity]

index d94971807478dd939b6ff8606b9cc9b398a894ef..c8e0fe3fc3dc295a5ae2c1171fb6c9253b210650 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for net-im/linpopup
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/ChangeLog,v 1.11 2004/12/30 21:16:17 vapier Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/ChangeLog,v 1.12 2005/01/01 22:14:12 vapier Exp $
+
+*linpopup-2.0.4-r1 (01 Jan 2005)
+
+  01 Jan 2005; Mike Frysinger <vapier@gentoo.org>
+  +files/2.0.4-overflow.patch, +linpopup-2.0.4-r1.ebuild,
+  -linpopup-2.0.4.ebuild:
+  Add patch from upstream cvs #74705.
 
 *linpopup-2.0.4 (30 Dec 2004)
 
index 2f73751d38e78f3b4fc068156a124242d928df4a..33dca0a60ca63ed58907f4fbcf3555bd95ddeaa3 100644 (file)
@@ -1,16 +1,17 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 92fb8abaf7f77f6f55fc2da275e16f45 ChangeLog 1269
-MD5 26b0e988fcd5ded30f665b46f4f1bbe5 linpopup-2.0.2.ebuild 1522
-MD5 7b4618179b4113fc65089a9ee13dbaed linpopup-2.0.4.ebuild 1491
+MD5 48ef497c6193964d906bae7314aa5095 ChangeLog 1476
+MD5 9ead3179060cb377805546495dba637f linpopup-2.0.4-r1.ebuild 1582
+MD5 a3fcae3408f094817d2ad03286f02d1f linpopup-2.0.2.ebuild 1520
+MD5 52071c5040fa5348d84e3afe928ea50b files/digest-linpopup-2.0.4-r1 67
 MD5 cc6067f86d972179bff61a52dbec66fa files/digest-linpopup-2.0.2 67
 MD5 64959795c47be33ab1bf172f96c02371 files/linpopup.desktop 188
-MD5 52071c5040fa5348d84e3afe928ea50b files/digest-linpopup-2.0.4 67
+MD5 1bbbe64c9e5268b1b46a7989561a20d2 files/2.0.4-overflow.patch 1336
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.9.10 (GNU/Linux)
 
-iD8DBQFB1HAsroRuSHgZdywRAntEAJ9XwOYQ+HN7IQ8a3NZbi1DAkByoegCggljx
-+0+bqU24JPFv5RkxpJ+kQbM=
-=nrpL
+iD8DBQFB1yDBroRuSHgZdywRAq1hAJ47puxzddaIGHD7bDCsm8xA6lRYMQCdH9DY
+iZkZZiKwVofOJC6RlhDBOcU=
+=QMz0
 -----END PGP SIGNATURE-----
diff --git a/net-im/linpopup/files/2.0.4-overflow.patch b/net-im/linpopup/files/2.0.4-overflow.patch
new file mode 100644 (file)
index 0000000..c038d30
--- /dev/null
@@ -0,0 +1,39 @@
+--- src/string.c.orig  2000-03-14 03:45:05.000000000 +0100
++++ src/string.c       2004-12-23 22:43:12.000000000 +0100
+@@ -29,20 +29,30 @@
+ {
+   int string_index = 0, sub_index, string_len;
+   char sub_string[50], new_string[2048];
++  int new_len;
+ 
+   string_len = strlen (string);
+-  strcpy (new_string, "");
++  new_string[0] = 0;
++  new_len = 0;
+   do
+     {
+       sub_index = 0;
+-      strcpy (sub_string, "");
+-      while ((string[string_index]) && (string[string_index] != 32))
++      while ((sub_index < sizeof(sub_string)-1) && (string[string_index]) && (string[string_index] != 32))
+       sub_string[sub_index++] = string[string_index++];
+       sub_string[sub_index] = 0;
+       if (!strcmp (sub_string, search_string))
+-      strcpy (sub_string, replace_string);
+-      strcat (new_string, sub_string);
+-      strcat (new_string, " ");
++      strncpy (sub_string, replace_string, 50);
++      sub_string[49] = 0;
++      if (new_len + sub_index >= sizeof(new_string))
++        sub_index = sizeof(new_string) - new_len - 1;
++      strncpy (new_string+new_len, sub_string, sub_index);
++      new_len += sub_index;
++      if (new_len >= sizeof(new_string)-1) {
++        new_string[sizeof(new_string)-1] = 0;
++        break;
++      }
++      new_string[new_len++] = ' ';
++      new_string[new_len] = 0;
+     }
+   while (++string_index < string_len);
+ 
index 8cf7e5fd9b9dd88d3665f2cbbb081c278f7e0b21..4bc48cc6ab2454a0c5b6075146515453d358bfcd 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/linpopup-2.0.2.ebuild,v 1.5 2004/07/15 00:16:56 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/linpopup-2.0.2.ebuild,v 1.6 2005/01/01 22:14:12 vapier Exp $
 
 inherit gnome2
 
similarity index 87%
rename from net-im/linpopup/linpopup-2.0.4.ebuild
rename to net-im/linpopup/linpopup-2.0.4-r1.ebuild
index 8f7da2f2810fc5913f51b85839db3627e444d116..b09eec8ae8b9112fe0d8b9a4738fa2e1cc82cd9e 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/linpopup-2.0.4.ebuild,v 1.1 2004/12/30 21:16:18 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/linpopup-2.0.4-r1.ebuild,v 1.1 2005/01/01 22:14:12 vapier Exp $
 
-inherit gnome2
+inherit gnome2 eutils
 
 DESCRIPTION="GTK2 port of the LinPopUp messaging client for Samba (including Samba 3)"
 HOMEPAGE="http://linpopup2.sourceforge.net/"
@@ -21,6 +21,12 @@ DEPEND="${RDEPEND}
 
 DOCS="AUTHORS BUGS ChangeLog INSTALL MANUAL NEWS README THANKS TODO"
 
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${PV}-overflow.patch
+}
+
 src_install() {
        # Install icon and .desktop for menu entry
        if use gnome ; then