diff options
-rw-r--r-- | www/tidy-devel/Makefile | 2 | ||||
-rw-r--r-- | www/tidy-devel/files/patch-ac | 18 | ||||
-rw-r--r-- | www/tidy/Makefile | 2 | ||||
-rw-r--r-- | www/tidy/files/patch-ac | 18 |
4 files changed, 30 insertions, 10 deletions
diff --git a/www/tidy-devel/Makefile b/www/tidy-devel/Makefile index ad1517c705d4..e9cb95213833 100644 --- a/www/tidy-devel/Makefile +++ b/www/tidy-devel/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-devel/files/patch-ac b/www/tidy-devel/files/patch-ac index 957ffed0d981..073e660a9fec 100644 --- a/www/tidy-devel/files/patch-ac +++ b/www/tidy-devel/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; 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; |