aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/040_maximum-cols.patch
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-05-04 07:38:18 +0000
committerTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-05-04 07:38:18 +0000
commitedb6f8d03dafdbd07524f049bbcafca6aa22a5b9 (patch)
treec737b52e84646ba8bf892da5ae6972a00cef2f18 /debian/patches/040_maximum-cols.patch
parentReleasing debian version 0.5.2-8 (diff)
downloadw3m-edb6f8d03dafdbd07524f049bbcafca6aa22a5b9.tar.gz
w3m-edb6f8d03dafdbd07524f049bbcafca6aa22a5b9.zip
Releasing debian version 0.5.2-9debian/0.5.2-9
Diffstat (limited to 'debian/patches/040_maximum-cols.patch')
-rw-r--r--debian/patches/040_maximum-cols.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/040_maximum-cols.patch b/debian/patches/040_maximum-cols.patch
new file mode 100644
index 0000000..f06dbfb
--- /dev/null
+++ b/debian/patches/040_maximum-cols.patch
@@ -0,0 +1,28 @@
+Description: Define MAXIMUM_COLS to check COLS
+Origin: upstream, http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/201008.month/4354.html
+Bug-Debian: http://bugs.debian.org/387751
+
+--- w3m.orig/fm.h 2010-07-26 20:42:45.000000000 +0900
++++ w3m/fm.h 2010-07-30 15:44:22.000000000 +0900
+@@ -101,6 +101,9 @@
+ #define LINELEN 256 /* Initial line length */
+ #define PAGER_MAX_LINE 10000 /* Maximum line kept as pager */
+
++#define MAXIMUM_COLS 1024
++#define DEFAULT_COLS 80
++
+ #ifdef USE_IMAGE
+ #define MAX_IMAGE 1000
+ #define MAX_IMAGE_SIZE 2048
+--- w3m.orig/main.c 2010-07-26 09:16:53.000000000 +0900
++++ w3m/main.c 2010-07-30 15:44:45.000000000 +0900
+@@ -634,6 +634,9 @@
+ if (++i >= argc)
+ usage();
+ COLS = atoi(argv[i]);
++ if (COLS > MAXIMUM_COLS) {
++ COLS = MAXIMUM_COLS;
++ }
+ }
+ else if (!strcmp("-ppc", argv[i])) {
+ double ppc;