From d6843fd87e4b4a10ad3d0846296a638f17d78caa Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 20 Mar 2010 18:55:54 +0000 Subject: mcplay is a curses based front-end for various audio players. It is a reimplementation in C of the well-known python program 'cplay'. Supported players currently include: - mpg123 - ogg123 - sox WWW: http://www.yahuxo.de/mcplay/ PR: ports/144879 Submitted by: Charlie Kester --- audio/mcplay/files/patch-screen.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 audio/mcplay/files/patch-screen.c (limited to 'audio/mcplay/files/patch-screen.c') diff --git a/audio/mcplay/files/patch-screen.c b/audio/mcplay/files/patch-screen.c new file mode 100644 index 000000000000..1f2b07a71c6a --- /dev/null +++ b/audio/mcplay/files/patch-screen.c @@ -0,0 +1,17 @@ +--- screen.c.orig 2010-03-18 19:50:01.000000000 -0700 ++++ screen.c 2010-03-18 19:54:07.000000000 -0700 +@@ -275,9 +275,13 @@ + gchar *tmp, *str; + + va_start(az, fmt); +- str = g_strdup_vprintf(fmt, az); ++ if ( fmt != NULL ) ++ str = g_strdup_vprintf(fmt, az); + va_end(az); + ++ if ( fmt == NULL ) ++ return; ++ + if( data->nmsg >= 0 ) + { + tmp = g_strdup_printf("%*.*s", -1*(data->cols-7), data->cols-7, str); -- cgit v1.2.3