From fa32682a5bfdd176e582cf6128a3c40c1c0cd189 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 4 May 2011 16:38:07 +0900 Subject: Releasing debian version 0.5.2-7 --- debian/patches/130_rc-blank-line-fix.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/patches/130_rc-blank-line-fix.patch (limited to 'debian/patches/130_rc-blank-line-fix.patch') diff --git a/debian/patches/130_rc-blank-line-fix.patch b/debian/patches/130_rc-blank-line-fix.patch new file mode 100644 index 0000000..b4c36c5 --- /dev/null +++ b/debian/patches/130_rc-blank-line-fix.patch @@ -0,0 +1,23 @@ +Description: Fix .w3m/config parser confused by blank lines +Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537706#10 +Author: "Trent W. Buck" +Bug-Debian: http://bugs.debian.org/537706 + +Index: w3m-0.5.2/rc.c +=================================================================== +--- w3m-0.5.2.orig/rc.c 2009-07-20 20:48:47.426565387 +1000 ++++ w3m-0.5.2/rc.c 2009-07-20 20:49:24.086565581 +1000 +@@ -1061,9 +1061,11 @@ + + for (;;) { + line = Strfgets(f); +- Strchop(line); +- if (line->length == 0) ++ if (line->length == 0) /* end of file */ + break; ++ Strchop(line); ++ if (line->length == 0) /* blank line */ ++ continue; + Strremovefirstspaces(line); + if (line->ptr[0] == '#') /* comment */ + continue; -- cgit v1.2.3