aboutsummaryrefslogtreecommitdiffstats
path: root/www/tidy
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-08-12 10:55:03 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-08-12 10:55:03 +0800
commit562948511862b3ff088ba2ae47aa14015f2156e1 (patch)
tree7d29b2016bdd7528c48cf2ab38caa358ce0c3cce /www/tidy
parent3da49edac320dc802b08ef35ae8a93a948d247ba (diff)
downloadfreebsd-ports-gnome-562948511862b3ff088ba2ae47aa14015f2156e1.tar.gz
freebsd-ports-gnome-562948511862b3ff088ba2ae47aa14015f2156e1.tar.zst
freebsd-ports-gnome-562948511862b3ff088ba2ae47aa14015f2156e1.zip
Avoid dumping core when $HOME is not set.
Reference: <7mn0t271m8.wl@black.imgsrc.co.jp>
Diffstat (limited to 'www/tidy')
-rw-r--r--www/tidy/Makefile2
-rw-r--r--www/tidy/files/patch-ac18
2 files changed, 15 insertions, 5 deletions
diff --git a/www/tidy/Makefile b/www/tidy/Makefile
index ad1517c705d4..e9cb95213833 100644
--- a/www/tidy/Makefile
+++ b/www/tidy/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tidy
PORTVERSION= 20000804
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.w3.org/People/Raggett/
DISTNAME= tidy4aug00
diff --git a/www/tidy/files/patch-ac b/www/tidy/files/patch-ac
index 957ffed0d981..073e660a9fec 100644
--- a/www/tidy/files/patch-ac
+++ b/www/tidy/files/patch-ac
@@ -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;