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:24 +0000
committerTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-05-04 07:38:24 +0000
commit1fb75aa6b116346ae26b1cbdbaa69f7d06ab708c (patch)
tree244d84b48261db66a41fede94cdde598a0a905c8 /debian/patches/040_maximum-cols.patch
parentReleasing debian version 0.5.2-9 (diff)
downloadw3m-1fb75aa6b116346ae26b1cbdbaa69f7d06ab708c.tar.gz
w3m-1fb75aa6b116346ae26b1cbdbaa69f7d06ab708c.zip
Releasing debian version 0.5.2-10debian/0.5.2-10
Diffstat (limited to '')
-rw-r--r--debian/patches/040_maximum-cols.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/debian/patches/040_maximum-cols.patch b/debian/patches/040_maximum-cols.patch
deleted file mode 100644
index f06dbfb..0000000
--- a/debian/patches/040_maximum-cols.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-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;