From b91b25e175a26b20319259e3dc7a432ead5af5fb Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 15 Sep 2012 09:12:25 +0200 Subject: audio/audtty: Updated for version 0.1.12. Added also some patches from git. Rewritten the gcc/DESTDIR patch Signed-off-by: Matteo Bernardini --- .../01-fix_segfault_in_playlist_creation.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch (limited to 'audio/audtty/patches/01-fix_segfault_in_playlist_creation.patch') 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 +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 +--- +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