summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-03-29 21:52:53 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-03-29 21:52:53 +0000
commit403e8e400a70937d51c0024a42798795ae71b7dd (patch)
treef9ae7d24a7d81fcebfa31b1720d2c4624add7510 /media-plugins/vdr-submenu/files
parentVersion bumped. Added some more patches controlled by use-flags. Added use-fl... (diff)
downloadgentoo-2-403e8e400a70937d51c0024a42798795ae71b7dd.tar.gz
gentoo-2-403e8e400a70937d51c0024a42798795ae71b7dd.tar.bz2
gentoo-2-403e8e400a70937d51c0024a42798795ae71b7dd.zip
Initial import of ebuild written by me.
(Portage version: 2.1_pre7-r2)
Diffstat (limited to 'media-plugins/vdr-submenu/files')
-rw-r--r--media-plugins/vdr-submenu/files/digest-vdr-submenu-0.0.23
-rw-r--r--media-plugins/vdr-submenu/files/vdr-submenu-0.0.2-asprintf.patch85
2 files changed, 88 insertions, 0 deletions
diff --git a/media-plugins/vdr-submenu/files/digest-vdr-submenu-0.0.2 b/media-plugins/vdr-submenu/files/digest-vdr-submenu-0.0.2
new file mode 100644
index 000000000000..b63981254f98
--- /dev/null
+++ b/media-plugins/vdr-submenu/files/digest-vdr-submenu-0.0.2
@@ -0,0 +1,3 @@
+MD5 bf238af8c4155cb7dc6daa1732a0c400 vdr-submenu-0.0.2.tar.gz 33441
+RMD160 aa58bf5f3d32d00aa314003aa2252098a21ac3b9 vdr-submenu-0.0.2.tar.gz 33441
+SHA256 ced5039cc17d70cdf43076aa7690951fac8e86b84ccb702660bf996b0c353779 vdr-submenu-0.0.2.tar.gz 33441
diff --git a/media-plugins/vdr-submenu/files/vdr-submenu-0.0.2-asprintf.patch b/media-plugins/vdr-submenu/files/vdr-submenu-0.0.2-asprintf.patch
new file mode 100644
index 000000000000..a36a0a19ef8e
--- /dev/null
+++ b/media-plugins/vdr-submenu/files/vdr-submenu-0.0.2-asprintf.patch
@@ -0,0 +1,85 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_asprintf.dpatch by Tobias Grimm <tg@e-tobi.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fixes wrong usage of asprintf and correctly free's memory allocated by it.
+
+This patch was extracted from http://e-tobi.net/vdr-experimental/pool/source/vdr/vdr-plugin-submenu_0.0.2-20.diff.gz
+
+
+@DPATCH@
+diff -urNad --exclude=CVS --exclude=.svn ./submenu-setup.c /tmp/dpep-work.ho7VxE/vdr-plugin-submenu-0.0.2/submenu-setup.c
+--- ./submenu-setup.c 2005-02-03 15:35:49.000000000 +0100
++++ /tmp/dpep-work.ho7VxE/vdr-plugin-submenu-0.0.2/submenu-setup.c 2005-08-24 00:37:43.000000000 +0200
+@@ -245,19 +245,25 @@
+ void cSubMenuSetup::DrawSubMenu(int level)
+ {
+ curLevel++;
+- char *line;
++ char *line, *tmp;
+ for(int i=0;i<SMSetup.Arbo.MaxItem[level];i++)
+ {
+ asprintf(&line,"%s","");
+ for (int z=0;z<curLevel*5;z++)
+ {
+- asprintf(&line,"%s ",line);
++ tmp = line;
++ asprintf(&line,"%s ",tmp);
++ free(tmp);
+ }
+ if (SMSetup.subMenuItem[SMSetup.Arbo.Index[level][i]].kindOfItem!=0)
+ {
+- asprintf(&line,"%s+",line);
++ tmp = line;
++ asprintf(&line,"%s+",tmp);
++ free(tmp);
+ }
+- asprintf(&line,"%s%s",line,tr(SMSetup.subMenuItem[SMSetup.Arbo.Index[level][i]].name));
++ tmp = line;
++ asprintf(&line,"%s%s",tmp,tr(SMSetup.subMenuItem[SMSetup.Arbo.Index[level][i]].name));
++ free(tmp);
+ Add (new cOsdItem(line),true);
+ SMSetup.Arbo.CurrentIndex[Current()]=SMSetup.Arbo.Index[level][i];
+ if (SMSetup.subMenuItem[SMSetup.Arbo.Index[level][i]].kindOfItem!=0)
+@@ -265,23 +271,26 @@
+ DrawSubMenu(SMSetup.subMenuItem[SMSetup.Arbo.Index[level][i]].kindOfItem);
+ curLevel--;
+ }
++ free(line);
+ }
+- delete line;
+ }
+
+ void cSubMenuSetup::DrawMenu(void)
+ {
+ int cur=Current();
+ Clear();
+- char *line;
++ char *line, *tmp;
+ for (int j=0;j<SMSetup.Arbo.MaxItem[0];j++)
+ {
+ asprintf(&line,"%s"," ");
+ if (SMSetup.subMenuItem[SMSetup.Arbo.Index[0][j]].kindOfItem!=0)
+ {
++ free(line);
+ asprintf(&line,"+");
+ }
+- asprintf(&line,"%s%s",line,tr(SMSetup.subMenuItem[SMSetup.Arbo.Index[0][j]].name));
++ tmp = line;
++ asprintf(&line,"%s%s",tmp,tr(SMSetup.subMenuItem[SMSetup.Arbo.Index[0][j]].name));
++ free(tmp);
+ Add (new cOsdItem(line),true);
+ SMSetup.Arbo.CurrentIndex[Current()]=SMSetup.Arbo.Index[0][j];
+ if (SMSetup.subMenuItem[SMSetup.Arbo.Index[0][j]].kindOfItem!=0)
+@@ -289,10 +298,10 @@
+ DrawSubMenu(SMSetup.subMenuItem[SMSetup.Arbo.Index[0][j]].kindOfItem);
+ curLevel--;
+ }
++ free(line);
+ }
+ SetCurrent(Get(cur));
+ Display();
+- delete line;
+ }
+
+