From 6483ae4b2a3abee2d58516b816e9a9b3f8aa1329 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 7 Oct 2014 15:51:50 +0000 Subject: - Fix checking unitialized variable - While here, add LICENSE PR: 194210 Submitted by: enslay@gmail.com MFH: 2014Q4 --- graphics/gimageview/Makefile | 5 ++++- .../files/patch-plugins__image_view__gimv_mplayer.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c (limited to 'graphics/gimageview') diff --git a/graphics/gimageview/Makefile b/graphics/gimageview/Makefile index 41a12c4a3a1c..23e4ce3d63f9 100644 --- a/graphics/gimageview/Makefile +++ b/graphics/gimageview/Makefile @@ -3,13 +3,16 @@ PORTNAME= gimageview PORTVERSION= 0.2.27 -PORTREVISION= 17 +PORTREVISION= 18 CATEGORIES= graphics MASTER_SITES= SF/gtkmmviewer/${PORTNAME}/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Yet another GTK+ based image viewer +LICENSE= GPLv2 # or later +LICENSE_FILE= ${WRKSRC}/COPYING + LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ libpng15.so:${PORTSDIR}/graphics/png diff --git a/graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c b/graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c new file mode 100644 index 000000000000..136e10c30306 --- /dev/null +++ b/graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c @@ -0,0 +1,20 @@ +Fixes check on unitialized variable +--- plugins/image_view/gimv_mplayer.c.orig 2004-09-29 03:42:14.000000000 -0500 ++++ plugins/image_view/gimv_mplayer.c 2014-10-06 23:43:40.000000000 -0400 +@@ -1480,13 +1480,13 @@ + gint i, len, size; + gchar *src, *end; + ++ src = buf; ++ size = bufsize; ++ + g_return_if_fail (buf && stock_buf); + g_return_if_fail (size > 0 || size < GIMV_MPLAYER_BUF_SIZE); + g_return_if_fail (remain_size); + +- src = buf; +- size = bufsize; +- + while (src && size >= 0) { + end = NULL; + -- cgit v1.2.3