aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIto Hiroyuki <ZXB01226@nifty.com>2010-08-08 09:53:42 +0000
committerIto Hiroyuki <ZXB01226@nifty.com>2010-08-08 09:53:42 +0000
commit21b5491b78e15ab3036cf0fc9fc595d8a6b9dd45 (patch)
tree07ac0411095628bf493f09c8312e43edc0b6567f /main.c
parentfix conditions for UseGraphicChar (diff)
downloadw3m-21b5491b78e15ab3036cf0fc9fc595d8a6b9dd45.tar.gz
w3m-21b5491b78e15ab3036cf0fc9fc595d8a6b9dd45.zip
[w3m-dev 04360] Re: "important" bugs from bugs.debian.org
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index e510f79..76d2e6d 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.267 2010/08/04 14:06:36 htrb Exp $ */
+/* $Id: main.c,v 1.268 2010/08/08 09:53:42 htrb Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -626,6 +626,9 @@ main(int argc, char **argv, char **envp)
if (++i >= argc)
usage();
COLS = atoi(argv[i]);
+ if (COLS > MAXIMUM_COLS) {
+ COLS = MAXIMUM_COLS;
+ }
}
else if (!strcmp("-ppc", argv[i])) {
double ppc;
@@ -776,7 +779,7 @@ main(int argc, char **argv, char **envp)
}
if (w3m_dump) {
if (COLS == 0)
- COLS = 80;
+ COLS = DEFAULT_COLS;
}
#ifdef USE_BINMODE_STREAM