• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision6726 (tree)
Time2017-05-17 22:01:16
Authordoda

Log Message

コマンドラインオプションでポートに 65535 を指定出来ない問題を修正

Change Summary

Incremental Difference

--- trunk/doc/en/html/about/history.html (revision 6725)
+++ trunk/doc/en/html/about/history.html (revision 6726)
@@ -49,7 +49,7 @@
4949
5050 <!-- li>Bug fixes
5151 <ul>
52- <li></li>
52+ <li>コマンドラインオプションでポート番号に 65535 を指定出来ない問題を修正した。</li>
5353 </ul>
5454 </li -->
5555
--- trunk/doc/ja/html/about/history.html (revision 6725)
+++ trunk/doc/ja/html/about/history.html (revision 6726)
@@ -46,11 +46,11 @@
4646 </ul>
4747 </li>
4848
49- <!-- li>バグ修正
49+ <li>バグ修正
5050 <ul>
51- <li>li>
51+ <li>コマンドラインオプションでポート番号に 65535 を指定出来ない問題を修正した。</li>
5252 </ul>
53- </li -->
53+ </li>
5454
5555 <li>その他
5656 <ul>
--- trunk/teraterm/teraterm/vtwin.cpp (revision 6725)
+++ trunk/teraterm/teraterm/vtwin.cpp (revision 6726)
@@ -3931,7 +3931,7 @@
39313931 strncat_s(Command,sizeof(Command)," /T=0",_TRUNCATE);
39323932 else
39333933 strncat_s(Command,sizeof(Command)," /T=1",_TRUNCATE);
3934- if (GetHNRec.TCPPort<65535) {
3934+ if (GetHNRec.TCPPort != 0) {
39353935 strncat_s(Command,sizeof(Command)," /P=",_TRUNCATE);
39363936 _snprintf_s(tcpport, sizeof(tcpport), _TRUNCATE, "%d", GetHNRec.TCPPort);
39373937 strncat_s(Command,sizeof(Command),tcpport,_TRUNCATE);
--- trunk/teraterm/ttpset/ttset.c (revision 6725)
+++ trunk/teraterm/ttpset/ttset.c (revision 6726)
@@ -3715,7 +3715,7 @@
37153715 char TempDir[MAXPATHLEN];
37163716 WORD ParamPort = 0;
37173717 WORD ParamCom = 0;
3718- WORD ParamTCP = 65535;
3718+ WORD ParamTCP = 0;
37193719 WORD ParamTel = 2;
37203720 WORD ParamBin = 2;
37213721 DWORD ParamBaud = BaudNone;
@@ -3900,7 +3900,7 @@
39003900 else if (_strnicmp(Temp, "/P=", 3) == 0) { /* TCP port num */
39013901 ParamPort = IdTCPIP;
39023902 if (sscanf(&Temp[3], "%hd", &ParamTCP) != 1)
3903- ParamTCP = 65535;
3903+ ParamTCP = 0;
39043904 }
39053905 else if (_stricmp(Temp, "/PIPE") == 0 ||
39063906 _stricmp(Temp, "/NAMEDPIPE") == 0) { /* 名前付きパイプ */
@@ -4014,7 +4014,7 @@
40144014 if (b == ':') {
40154015 ts->HostName[i - 1] = 0;
40164016 if (sscanf(&(ts->HostName[i]), "%d", &ParamTCP) != 1)
4017- ParamTCP = 65535;
4017+ ParamTCP = 0;
40184018 }
40194019 #endif /* NO_INET6 */
40204020 }
@@ -4022,7 +4022,7 @@
40224022 switch (ParamPort) {
40234023 case IdTCPIP:
40244024 ts->PortType = IdTCPIP;
4025- if (ParamTCP < 65535)
4025+ if (ParamTCP != 0)
40264026 ts->TCPPort = ParamTCP;
40274027 if (ParamTel < 2)
40284028 ts->Telnet = ParamTel;
Show on old repository browser