summaryrefslogtreecommitdiff
path: root/www
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
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')
-rw-r--r--www/wwwoffle/distinfo3
-rw-r--r--www/wwwoffle/patches/patch-ab13
2 files changed, 15 insertions, 1 deletions
diff --git a/www/wwwoffle/distinfo b/www/wwwoffle/distinfo
index feaea93f798..e1a0ad70418 100644
--- a/www/wwwoffle/distinfo
+++ b/www/wwwoffle/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2002/04/25 10:43:26 fredb Exp $
+$NetBSD: distinfo,v 1.11 2002/05/14 15:37:19 fredb Exp $
SHA1 (wwwoffle-2.7b.tgz) = fb9d8c4a374e9fe1c339537af756896f6dd1172d
Size (wwwoffle-2.7b.tgz) = 857511 bytes
SHA1 (patch-aa) = 897de385a47826e16a8a09b1bc1c207a2d350f94
+SHA1 (patch-ab) = 976d43802c8d8db406b1e5bceead2903c6ef33bf
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);