File html_encode-realloc_error.patch of Package modlogan
--- src/misc.c 2004-03-18 03:31:50.000000000 +0100
+++ src/misc.c 2009-09-17 12:46:05.726105139 +0200
@@ -490,7 +490,7 @@
if (!s) return NULL;
- q_len = strlen(s) * 2 + 1;
+ q_len = strlen(s) * 2 + 8;
q = malloc(q_len);
p = q;
@@ -535,7 +535,7 @@
*(++p) = '\0';
s++;
- if (strlen(q) > (q_len - 4)) {
+ if (strlen(q) > (q_len - 8)) {
q_len += 128;
q = realloc(q, q_len);