diff options
author | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-08-08 09:53:42 +0000 |
---|---|---|
committer | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-08-08 09:53:42 +0000 |
commit | 21b5491b78e15ab3036cf0fc9fc595d8a6b9dd45 (patch) | |
tree | 07ac0411095628bf493f09c8312e43edc0b6567f /main.c | |
parent | fix conditions for UseGraphicChar (diff) | |
download | w3m-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |