From owner-freebsd-doc Mon Jul 8 7: 9:36 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5811037B400; Mon, 8 Jul 2002 07:09:32 -0700 (PDT) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23D5443E3B; Mon, 8 Jul 2002 07:09:31 -0700 (PDT) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id 365EC24DCB; Mon, 8 Jul 2002 23:09:30 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id 551AE24DB3; Mon, 8 Jul 2002 23:09:23 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id 5B69A1E46F0; Mon, 8 Jul 2002 23:09:19 +0900 (JST) Date: Mon, 08 Jul 2002 23:09:19 +0900 Message-ID: <7mn0t271m8.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: Murray Stokely Cc: Don Lewis , doc@FreeBSD.org, saken@hotel.rmta.org Subject: Re: www/tidy core dumps when building doc during "make release" In-Reply-To: <20020707014835.D11035@freebsdmall.com> References: <200207060546.g665kH0M017501@gw.catspoiler.org> User-Agent: Wanderlust/2.9.10 (Unchained Melody) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS on ns.imgsrc.co.jp Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org How about this? Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/tidy/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- Makefile 22 Nov 2001 15:24:54 -0000 1.21 +++ Makefile 8 Jul 2002 14:08:15 -0000 @@ -7,7 +7,7 @@ PORTNAME= tidy PORTVERSION= 20000804 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.w3.org/People/Raggett/ DISTNAME= tidy4aug00 Index: files/patch-ac =================================================================== RCS file: /home/ncvs/ports/www/tidy/files/patch-ac,v retrieving revision 1.1 diff -u -r1.1 patch-ac --- files/patch-ac 22 Nov 2001 15:26:43 -0000 1.1 +++ files/patch-ac 8 Jul 2002 14:07:50 -0000 @@ -1,5 +1,5 @@ ---- config.c.orig Fri Aug 4 19:21:05 2000 -+++ config.c Mon Nov 19 14:42:14 2001 +--- config.c.orig Sat Aug 5 01:21:05 2000 ++++ config.c Mon Jul 8 23:07:17 2002 @@ -94,6 +94,7 @@ Bool TidyMark = yes; /* add meta element indicating tidied doc */ Bool Emacs = no; /* if true format error output for GNU Emacs */ @@ -16,7 +16,17 @@ /* this must be the final entry */ {0, 0, 0} -@@ -423,7 +425,10 @@ +@@ -392,7 +394,8 @@ + home_dir = passwd->pw_dir; + } + +- if (p = realloc(expanded_filename, strlen(filename)+strlen(home_dir)+1)) ++ if (home_dir != NULL && ++ (p = realloc(expanded_filename, strlen(filename)+strlen(home_dir)+1))) + { + strcat(strcpy(expanded_filename = p, home_dir), filename); + return(expanded_filename); +@@ -423,7 +426,10 @@ /* open the file and parse its contents */ if ((fin = fopen(fname, "r")) == null) @@ -28,7 +38,7 @@ else { config_text = null; -@@ -533,6 +538,12 @@ +@@ -533,6 +539,12 @@ { QuoteAmpersand = yes; HideEndTags = no; -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message