summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-12-17 14:20:14 +0000
committerjoerg <joerg@pkgsrc.org>2016-12-17 14:20:14 +0000
commit85eaeade454de457639450f834228a5ea521ae28 (patch)
tree99281129ee10ed2067817133953644d72182bed8
parenta98fb035991f3570c442cff620d997d6373d25be (diff)
downloadpkgsrc-85eaeade454de457639450f834228a5ea521ae28.tar.gz
Fix pointer abuse.
-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) ++;