summaryrefslogtreecommitdiffstats
path: root/audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch
diff options
context:
space:
mode:
author Matteo Bernardini2012-09-15 09:12:25 +0200
committer dsomero2012-09-17 01:44:40 +0200
commitb91b25e175a26b20319259e3dc7a432ead5af5fb (patch)
tree76866d78062a5945cd93a1c99c58c0918c0c97c0 /audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch
parent7967c79891a3d523a160dfb559cd571e1768c666 (diff)
downloadslackbuilds-b91b25e175a26b20319259e3dc7a432ead5af5fb.tar.gz
audio/audtty: Updated for version 0.1.12.
Added also some patches from git. Rewritten the gcc/DESTDIR patch Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch')
-rw-r--r--audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch b/audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch
new file mode 100644
index 0000000000..c0b426c91d
--- /dev/null
+++ b/audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch
@@ -0,0 +1,36 @@
+From 3122210cbe3ccd5e83d1a2d1415d370d46834052 Mon Sep 17 00:00:00 2001
+From: Chris Taylor <chris@code-monkeys.org>
+Date: Fri, 05 Mar 2010 06:09:20 +0000
+Subject: Fix segfault in playlist creation.
+
+Audtty would segfault if buffer length was 0 and ENTER was pressed.
+
+
+Signed-off-by: Chris Taylor <chris@code-monkeys.org>
+---
+diff --git a/playlist_create.c b/playlist_create.c
+index 0cd0088..475a494 100644
+--- a/playlist_create.c
++++ b/playlist_create.c
+@@ -48,6 +48,11 @@ void playlist_create( void )
+ case ESCAPE:
+ return;
+ case ENTER:
++
++ if(strlen(buffer)==0) {
++ return;
++ }
++ else {
+ file=fopen(buffer,"w");
+ for(i=0;i<list.length;i++)
+ {
+@@ -55,6 +60,7 @@ void playlist_create( void )
+ fputs("\n",file);
+ }
+ fclose(file);
++ }
+ return;
+ case KEY_BACKSPACE:
+ if (len == 0) break;
+--
+cgit v0.8.3.4-115-g1759