diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-10-07 15:51:50 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-10-07 15:51:50 +0000 |
commit | 6483ae4b2a3abee2d58516b816e9a9b3f8aa1329 (patch) | |
tree | f2d185da990214ea5bec0ff59831dd588710346b /graphics/gimageview | |
parent | fd6b682435723a5dc5f7576f47ea4da9a770637c (diff) | |
download | ports-6483ae4b2a3abee2d58516b816e9a9b3f8aa1329.tar.gz ports-6483ae4b2a3abee2d58516b816e9a9b3f8aa1329.zip |
- Fix checking unitialized variable
- While here, add LICENSE
PR: 194210
Submitted by: enslay@gmail.com
MFH: 2014Q4
Notes
Notes:
svn path=/head/; revision=370352
Diffstat (limited to 'graphics/gimageview')
-rw-r--r-- | graphics/gimageview/Makefile | 5 | ||||
-rw-r--r-- | graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c | 20 |
2 files changed, 24 insertions, 1 deletions
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; + |