1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

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>
This commit is contained in:
Doug Barton 2010-12-05 20:30:48 +00:00
parent 6f7eaa0bca
commit b1fdb92d67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265731

View File

@ -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