Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2014 15:51:50 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370352 - in head/graphics/gimageview: . files
Message-ID:  <201410071551.s97Fpoc3060303@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Oct  7 15:51:50 2014
New Revision: 370352
URL: https://svnweb.freebsd.org/changeset/ports/370352
QAT: https://qat.redports.org/buildarchive/r370352/

Log:
  - Fix checking unitialized variable
  - While here, add LICENSE
  
  PR:		194210
  Submitted by:	enslay@gmail.com
  MFH:		2014Q4

Added:
  head/graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c   (contents, props changed)
Modified:
  head/graphics/gimageview/Makefile

Modified: head/graphics/gimageview/Makefile
==============================================================================
--- head/graphics/gimageview/Makefile	Tue Oct  7 15:49:55 2014	(r370351)
+++ head/graphics/gimageview/Makefile	Tue Oct  7 15:51:50 2014	(r370352)
@@ -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
 

Added: head/graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gimageview/files/patch-plugins__image_view__gimv_mplayer.c	Tue Oct  7 15:51:50 2014	(r370352)
@@ -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;
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410071551.s97Fpoc3060303>