aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/unrtf
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-10-26 16:07:10 +0800
committervs <vs@FreeBSD.org>2004-10-26 16:07:10 +0800
commit708c263b5ca0ff26dddf6d526a167e5a65bef2dc (patch)
tree078d7f8e310451386c1504495b668eed8f45b49e /textproc/unrtf
parent1a1ab48652642add67194684ede836eac31e78c2 (diff)
downloadfreebsd-ports-gnome-708c263b5ca0ff26dddf6d526a167e5a65bef2dc.tar.gz
freebsd-ports-gnome-708c263b5ca0ff26dddf6d526a167e5a65bef2dc.tar.zst
freebsd-ports-gnome-708c263b5ca0ff26dddf6d526a167e5a65bef2dc.zip
Fix runtime error: Linnix' printf(NULL) works while we segfault.
PR: ports/71356 Submitted by: "parv"
Diffstat (limited to 'textproc/unrtf')
-rw-r--r--textproc/unrtf/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/textproc/unrtf/Makefile b/textproc/unrtf/Makefile
index c77f445fa4e8..68d89269cebf 100644
--- a/textproc/unrtf/Makefile
+++ b/textproc/unrtf/Makefile
@@ -24,6 +24,7 @@ post-patch:
@${REINPLACE_CMD} -e "s|^CC|#CC| ; s|^CFLAGS|#CFLAGS| ; \
s| ||" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|<malloc\.h>|<stdlib.h>|" ${WRKSRC}/malloc.c
+ ${REINPLACE_CMD} -e 's/printf (op->\(.*\))/printf (op->\1 == NULL ? "" : op->\1)/' ${WRKSRC}/convert.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrtf ${PREFIX}/bin