diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-23 16:00:11 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-23 16:00:11 +0000 |
commit | 0545c29559f7d3b4d333f7f64f594398e796264e (patch) | |
tree | d33790c5a90a8b10a435e27a0e26376e77f87ed8 | |
parent | [w3m-dev 03765] Re: README.cygwin (diff) | |
download | w3m-0545c29559f7d3b4d333f7f64f594398e796264e.tar.gz w3m-0545c29559f7d3b4d333f7f64f594398e796264e.zip |
[w3m-dev 03772] Compilation error on Cygwin B20.1
* terms.c (term_title): use Sprintf() instead of snprintf()
* doc-jp/README.cygwin doc/README.cygwin: add note about B20.1
From: patakuti@t3.rim.or.jp
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | doc-jp/README.cygwin | 2 | ||||
-rw-r--r-- | doc/README.cygwin | 1 | ||||
-rw-r--r-- | terms.c | 11 |
4 files changed, 17 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2003-02-24 patakuti@t3.rim.or.jp + + * [w3m-dev 03772] Compilation error on Cygwin B20.1 + * terms.c (term_title): use Sprintf() instead of snprintf() + * doc-jp/README.cygwin doc/README.cygwin: add note about B20.1 + 2003-02-21 WATANABE Katsuyuki <knabe@sannet.ne.jp> * [w3m-dev 03765] Re: README.cygwin @@ -7227,4 +7233,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.760 2003/02/21 14:25:33 ukai Exp $ +$Id: ChangeLog,v 1.761 2003/02/23 16:00:11 ukai Exp $ diff --git a/doc-jp/README.cygwin b/doc-jp/README.cygwin index bd902cd..97e14c9 100644 --- a/doc-jp/README.cygwin +++ b/doc-jp/README.cygwin @@ -12,6 +12,8 @@ Cygwin に関する情報は http://cygwin.com/ を参照してください. w3m-0.2 以降から cygwin 向けの修正パッチが取り込まれたため,cygwin-1.1.4 以降の環境であれば特に問題なくビルドできます.Net Release 前の B18, B19, B20あたりでもビルドできるはずですが,確認はされていません. + (*) Cygwin B20.1 の環境では + LOCAL_LIBRARIES に -luser32 をつける必要があります。 なお,termcap ないし ncurses パッケージは最新のものを使ってください.特 に termcap を使う場合,古いパッケージは /etc/termcap の cygwin のエント diff --git a/doc/README.cygwin b/doc/README.cygwin index ca9ed94..b08e79b 100644 --- a/doc/README.cygwin +++ b/doc/README.cygwin @@ -11,6 +11,7 @@ Build After w3m-0.2, patches for Cygwin have been marged to w3m packages. If you use cygwin-1.1.4 or later, w3m shuould be build without any problems. + (*) on Cygwin B20.1, you should add -luser32 to LOCAL_LIBRARIES The newest version of termcap and ncurses package are recomended. Especially, older versions of termcap have bugs in the entry for Cygwin which make the @@ -1,4 +1,4 @@ -/* $Id: terms.c,v 1.47 2003/02/21 14:25:33 ukai Exp $ */ +/* $Id: terms.c,v 1.48 2003/02/23 16:00:15 ukai Exp $ */ /* * An original curses library for EUC-kanji by Akinori ITO, December 1989 * revised by Akinori ITO, January 1995 @@ -1827,9 +1827,12 @@ term_title(char *s) if (title_str != NULL) { #ifdef __CYGWIN__ if (isLocalConsole && title_str == CYGWIN_TITLE) { - char buff[1024]; - snprintf(buff, sizeof(buff), title_str, s); - SetConsoleTitle(buff); + Str buff; + buff = Sprintf(title_str, s); + if (buff->length > 1024) { + Strtruncate(buff, 1024); + } + SetConsoleTitle(buff->ptr); } else if (isLocalConsole || !isWinConsole) #endif |