From 357b04e5919d883ac0a10625dab38f8e1f1497cf Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 27 Jul 2014 01:08:30 +0000 Subject: [PATCH] net/libvncserver: fix compile warning PR: 191527 Submitted by: Duane --- net/libvncserver/Makefile | 4 ++-- net/libvncserver/files/patch-libvncserver_rfbregion.c | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 net/libvncserver/files/patch-libvncserver_rfbregion.c diff --git a/net/libvncserver/Makefile b/net/libvncserver/Makefile index 850e9e05df2d..da1ae7b23b3b 100644 --- a/net/libvncserver/Makefile +++ b/net/libvncserver/Makefile @@ -3,13 +3,13 @@ PORTNAME= libvncserver PORTVERSION= 0.9.9 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= net devel MASTER_SITES= SF DISTNAME= LibVNCServer-${PORTVERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= Provide an easy API to write one's own vnc server +COMMENT= Provide an easy API to a custom vnc server LICENSE= GPLv2 diff --git a/net/libvncserver/files/patch-libvncserver_rfbregion.c b/net/libvncserver/files/patch-libvncserver_rfbregion.c new file mode 100644 index 000000000000..d85072474dbb --- /dev/null +++ b/net/libvncserver/files/patch-libvncserver_rfbregion.c @@ -0,0 +1,11 @@ +--- ./libvncserver/rfbregion.c.orig 2014-07-01 23:00:03.428441834 +1000 ++++ ./libvncserver/rfbregion.c 2014-07-01 23:00:14.275274256 +1000 +@@ -751,7 +751,7 @@ + i->ptrSize += DEFSTEP; + i->sPtrs = (sraSpan**)realloc(i->sPtrs, sizeof(sraSpan*)*i->ptrSize); + } +- i->ptrPos =+ 2; ++ i->ptrPos += 2; + if(sraReverse(i)) { + i->sPtrs[i->ptrPos] = i->sPtrs[i->ptrPos-2]->subspan->back._prev; + i->sPtrs[i->ptrPos+1] = &(i->sPtrs[i->ptrPos-2]->subspan->front);