ports/textproc/htmldoc/files/patch-htmldoc__http.c
Matthias Andree 01abf783d2 Upgrade to HTMLDOC 1.8.28, fixing security-relevant bugs.
Support staging, and modernize LIB_DEPENDS.
Tweak build environment to get proper detection of png/jpeg libs.
Switch to using BZIP2 tarballs.

PR:		ports/186024
Approved by:	jose@diasfernandes.pt (maintainer)
Security:	6d08fa63-83bf-11e3-bdba-080027ef73ec
2014-01-29 20:18:52 +00:00

11 lines
399 B
C

--- ./htmldoc/http.c.orig 2014-01-05 21:41:32.000000000 +0100
+++ ./htmldoc/http.c 2014-01-28 04:47:07.000000000 +0100
@@ -1228,6 +1228,8 @@
* Using the current time is a dubious random seed, but on some systems
* it is the best we can do (on others, this seed isn't even used...)
*/
+#define CUPS_RAND() arc4random()
+#define CUPS_SRAND(v) arc4random_stir()
CUPS_SRAND(time(NULL));