diff options
author | dougb <dougb@FreeBSD.org> | 2010-12-06 04:30:48 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2010-12-06 04:30:48 +0800 |
commit | e2c43fa48080d83426c213e7033f37d9c8076edd (patch) | |
tree | 6ed56581eeffcf8658680c56c0774c9af834a17f /x11 | |
parent | 7e4dca0a07fae284830001809694674fc4301d12 (diff) | |
download | freebsd-ports-gnome-e2c43fa48080d83426c213e7033f37d9c8076edd.tar.gz freebsd-ports-gnome-e2c43fa48080d83426c213e7033f37d9c8076edd.tar.zst freebsd-ports-gnome-e2c43fa48080d83426c213e7033f37d9c8076edd.zip |
Patch a memory exhaustion error in hacks/glx/tube.c. Patch confirmed
with xscreensaver author.
PR: ports/151788
Submitted by: John Marshall <john.marshall@riverwillow.com.au>
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xscreensaver/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile index 6f4c70d71932..831e6abc4d96 100644 --- a/x11/xscreensaver/Makefile +++ b/x11/xscreensaver/Makefile @@ -7,6 +7,7 @@ PORTNAME= xscreensaver PORTVERSION= 5.12 +PORTREVISION= 1 CATEGORIES?= x11 MASTER_SITES= http://www.jwz.org/xscreensaver/ \ http://dougbarton.us/Downloads/ @@ -140,6 +141,9 @@ post-patch: -e 's#malloc.h#stdlib.h#g' \ -e 's#/usr/X11R6#${LOCALBASE}#g' \ ${WRKSRC}/configure.Patched > ${WRKSRC}/configure + @ ${CP} ${WRKSRC}/hacks/glx/tube.c ${WRKSRC}/hacks/glx/tube.c.Patched + @ ${SED} -e '183s#.*# free(array);#' \ + ${WRKSRC}/hacks/glx/tube.c.Patched > ${WRKSRC}/hacks/glx/tube.c .if defined(WITH_PAM) .for f in driver/passwd-pam.c driver/xscreensaver.man @ ${CP} ${WRKSRC}/${f} ${WRKSRC}/${f}.presed |