summaryrefslogtreecommitdiff
path: root/www/wwwoffle/patches
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2002-05-14 15:37:19 +0000
committerfredb <fredb@pkgsrc.org>2002-05-14 15:37:19 +0000
commit96c602805c8adfc0c9c812990820220dea7fd08c (patch)
treeb6ccc59f1954be90d2fa013d755a4d90c7b18037 /www/wwwoffle/patches
parent14f19c69adc91dad9119a3f0bb7d3507795c41d9 (diff)
downloadpkgsrc-96c602805c8adfc0c9c812990820220dea7fd08c.tar.gz
Don't core just because a silly server, like my 3com [TM] Lan Modem,
puts leading white space at the beginning of the very first header line. (Leading blanks are supposed to signify a continuation of the previous header line, but for the "server:" line, there aren't any previous lines, so who knows why they do that.) This patch was suggested by Andrew M. Bishop, "wwwoffle"'s author and maintainer. Don't know if it's going to be in the next release, or not.
Diffstat (limited to 'www/wwwoffle/patches')
-rw-r--r--www/wwwoffle/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/wwwoffle/patches/patch-ab b/www/wwwoffle/patches/patch-ab
new file mode 100644
index 00000000000..60d5403af35
--- /dev/null
+++ b/www/wwwoffle/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.7 2002/05/14 15:37:20 fredb Exp $
+
+--- src/headbody.c.orig Sat Apr 13 09:45:24 2002
++++ src/headbody.c
+@@ -205,7 +205,7 @@
+ {
+ /* Append text to the last header line */
+
+- if(!head->key[head->n-1])
++ if(head->n==0 || !head->key[head->n-1])
+ return; /* weird: there must be a last header... */
+
+ head->size+=strlen(val);