diff options
Diffstat (limited to 'net/wget/patches/patch-af')
-rw-r--r-- | net/wget/patches/patch-af | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/wget/patches/patch-af b/net/wget/patches/patch-af new file mode 100644 index 00000000000..a5c788a772c --- /dev/null +++ b/net/wget/patches/patch-af @@ -0,0 +1,31 @@ +$NetBSD: patch-af,v 1.3 2002/10/21 14:46:27 mycroft Exp $ + +--- src/cookies.c.orig Sun May 27 19:34:56 2001 ++++ src/cookies.c Mon Oct 21 14:27:38 2002 +@@ -474,7 +474,12 @@ + { + case S_NAME_PRE: + if (ISSPACE (c)) +- FETCH (c, p); ++ { ++ FETCH1 (c, p); ++ /* drop trailing whitespace */ ++ if (!c) ++ state = S_DONE; ++ } + else if (ATTR_NAME_CHAR (c)) + { + name_b = p - 1; +@@ -605,7 +610,11 @@ + } + } + if (state == S_DONE) +- return cookie; ++ { ++ if (!cookie->attr) ++ goto eof; ++ return cookie; ++ } + + delete_cookie (cookie); + if (state == S_ERROR) |