summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjoerg <joerg>2016-12-17 14:20:14 +0000
committerjoerg <joerg>2016-12-17 14:20:14 +0000
commitd6ba78d744c14fddaa88ea17b970328a2ddb1066 (patch)
tree4afe74381f88a22f9bcbc9f46ab9cf90ba2d74d8 /www
parenta546c8dbcdb6a696c14e1150c5602a217f5448f6 (diff)
downloadpkgsrc-d6ba78d744c14fddaa88ea17b970328a2ddb1066.tar.gz
Fix pointer abuse.
Diffstat (limited to 'www')
-rw-r--r--www/htmldoc/distinfo3
-rw-r--r--www/htmldoc/patches/patch-htmldoc_htmlsep.cxx15
2 files changed, 17 insertions, 1 deletions
diff --git a/www/htmldoc/distinfo b/www/htmldoc/distinfo
index 2e2e0925bc6..a0b5e496cdd 100644
--- a/www/htmldoc/distinfo
+++ b/www/htmldoc/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2015/11/04 02:46:54 agc Exp $
+$NetBSD: distinfo,v 1.13 2016/12/17 14:20:14 joerg Exp $
SHA1 (htmldoc-1.8.27-source.tar.bz2) = 472908e0aafed1cedfbacd8ed3168734aebdec4b
RMD160 (htmldoc-1.8.27-source.tar.bz2) = 9605a5894675439f5fae405fb060972e19f33c7e
@@ -9,3 +9,4 @@ SHA1 (patch-ab) = 22add1402202fed917a79ce67963cb282ca46f87
SHA1 (patch-ac) = bf9036087e03095d51ee064e1f193c899848adff
SHA1 (patch-ad) = 94e5f10387ede380b7579392e41234ff832f1295
SHA1 (patch-ae) = 1d77dd5120605881e83bf31ee07fa9fd73619cd3
+SHA1 (patch-htmldoc_htmlsep.cxx) = be66659cc83047ced67e2c73af9f4052962cdc50
diff --git a/www/htmldoc/patches/patch-htmldoc_htmlsep.cxx b/www/htmldoc/patches/patch-htmldoc_htmlsep.cxx
new file mode 100644
index 00000000000..4f735237de4
--- /dev/null
+++ b/www/htmldoc/patches/patch-htmldoc_htmlsep.cxx
@@ -0,0 +1,15 @@
+$NetBSD: patch-htmldoc_htmlsep.cxx,v 1.1 2016/12/17 14:20:14 joerg Exp $
+
+Don't check the pointer, but the pointed to value.
+
+--- htmldoc/htmlsep.cxx.orig 2016-12-17 10:25:12.905636738 +0000
++++ htmldoc/htmlsep.cxx
+@@ -536,7 +536,7 @@ write_doc(FILE **out, // I - Output
+ if (t->markup >= MARKUP_H1 && t->markup < (MARKUP_H1 + TocLevels) &&
+ htmlGetVariable(t, (uchar *)"_HD_OMIT_TOC") == NULL)
+ {
+- if (heading >= 0)
++ if (*heading >= 0)
+ write_footer(out, *heading);
+
+ (*heading) ++;