summaryrefslogtreecommitdiff
path: root/media-sound/grip/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/grip/files
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/grip/files')
-rw-r--r--media-sound/grip/files/grip-3.3.1-implicit-declaration.patch32
-rw-r--r--media-sound/grip/files/grip-3.3.1-invalid-genre-size.patch30
2 files changed, 62 insertions, 0 deletions
diff --git a/media-sound/grip/files/grip-3.3.1-implicit-declaration.patch b/media-sound/grip/files/grip-3.3.1-implicit-declaration.patch
new file mode 100644
index 000000000000..2319b772a9b0
--- /dev/null
+++ b/media-sound/grip/files/grip-3.3.1-implicit-declaration.patch
@@ -0,0 +1,32 @@
+--- grip-3.3.1/src/status_window.c
++++ grip-3.3.1/src/status_window.c
+@@ -23,6 +23,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <unistd.h>
++#include <string.h>
+ #include <fcntl.h>
+ #include <vte/vte.h>
+ #include "status_window.h"
+--- grip-3.3.1/src/tray.c
++++ grip-3.3.1/src/tray.c
+@@ -20,6 +20,9 @@
+ * USA
+ */
+
++#include "cdplay.h"
++#include "common.h"
++#include "rip.h"
+ #include "tray.h"
+ #include "../pixmaps/rip1.xpm"
+ #include "../pixmaps/menuplay.xpm"
+--- grip-3.3.1/src/cdplay.c
++++ grip-3.3.1/src/cdplay.c
+@@ -28,6 +28,7 @@
+ #include "cddev.h"
+ #include "discedit.h"
+ #include "dialog.h"
++#include "tray.h"
+ #include "rip.h"
+ #include "grip_id3.h"
+
diff --git a/media-sound/grip/files/grip-3.3.1-invalid-genre-size.patch b/media-sound/grip/files/grip-3.3.1-invalid-genre-size.patch
new file mode 100644
index 000000000000..c826fc6e2e80
--- /dev/null
+++ b/media-sound/grip/files/grip-3.3.1-invalid-genre-size.patch
@@ -0,0 +1,30 @@
+http://bugs.gentoo.org/285105
+
+--- grip-3.3.1/src/id3.c
++++ grip-3.3.1/src/id3.c
+@@ -252,8 +252,8 @@
+
+ if ( frames[ i ] ) {
+ char *c_data = NULL;
+- char gen[ 5 ] = "( )";
+- char trk[ 4 ] = " ";
++ char gen[ 6 ] = "( )"; /* max unsigned char: 255 */
++ char trk[ 3 ] = " "; /* max CDDA tracks: 99 */
+
+ switch( frameids[ i ] ) {
+ case ID3FID_TITLE:
+@@ -278,12 +278,12 @@
+
+ case ID3FID_CONTENTTYPE:
+ c_data = gen;
+- sprintf( gen, "(%d)", genre ); /* XXX */
++ snprintf( gen, 6, "(%d)", genre );
+ break;
+
+ case ID3FID_TRACKNUM:
+ c_data = trk;
+- sprintf( trk, "%d", tracknum ); /* XXX */
++ snprintf( trk, 3, "%d", tracknum );
+ break;
+
+ default: