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

svnno****@sourc***** svnno****@sourc*****
2017年 5月 17日 (水) 22:01:17 JST


Revision: 6726
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6726
Author:   doda
Date:     2017-05-17 22:01:16 +0900 (Wed, 17 May 2017)
Log Message:
-----------
コマンドラインオプションでポートに 65535 を指定出来ない問題を修正

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html
    trunk/teraterm/teraterm/vtwin.cpp
    trunk/teraterm/ttpset/ttset.c

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2017-05-14 14:55:59 UTC (rev 6725)
+++ trunk/doc/en/html/about/history.html	2017-05-17 13:01:16 UTC (rev 6726)
@@ -49,7 +49,7 @@
 
   <!-- li>Bug fixes
     <ul>
-      <li></li>
+      <li>\x83R\x83}\x83\x93\x83h\x83\x89\x83C\x83\x93\x83I\x83v\x83V\x83\x87\x83\x93\x82Ń|\x81[\x83g\x94ԍ\x86\x82\xC9 65535 \x82\xF0\x8Ew\x92\xE8\x8Fo\x97\x88\x82Ȃ\xA2\x96\xE2\x91\xE8\x82\xF0\x8FC\x90\xB3\x82\xB5\x82\xBD\x81B</li>
     </ul>
   </li -->
 

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2017-05-14 14:55:59 UTC (rev 6725)
+++ trunk/doc/ja/html/about/history.html	2017-05-17 13:01:16 UTC (rev 6726)
@@ -46,11 +46,11 @@
     </ul>
   </li>
 
-  <!-- li>\x83o\x83O\x8FC\x90\xB3
+  <li>\x83o\x83O\x8FC\x90\xB3
     <ul>
-      <li>li>
+      <li>\x83R\x83}\x83\x93\x83h\x83\x89\x83C\x83\x93\x83I\x83v\x83V\x83\x87\x83\x93\x82Ń|\x81[\x83g\x94ԍ\x86\x82\xC9 65535 \x82\xF0\x8Ew\x92\xE8\x8Fo\x97\x88\x82Ȃ\xA2\x96\xE2\x91\xE8\x82\xF0\x8FC\x90\xB3\x82\xB5\x82\xBD\x81B</li>
     </ul>
-  </li -->
+  </li>
 
   <li>\x82\xBB\x82̑\xBC
     <ul>

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2017-05-14 14:55:59 UTC (rev 6725)
+++ trunk/teraterm/teraterm/vtwin.cpp	2017-05-17 13:01:16 UTC (rev 6726)
@@ -3931,7 +3931,7 @@
 					strncat_s(Command,sizeof(Command)," /T=0",_TRUNCATE);
 				else
 					strncat_s(Command,sizeof(Command)," /T=1",_TRUNCATE);
-				if (GetHNRec.TCPPort<65535) {
+				if (GetHNRec.TCPPort != 0) {
 					strncat_s(Command,sizeof(Command)," /P=",_TRUNCATE);
 					_snprintf_s(tcpport, sizeof(tcpport), _TRUNCATE, "%d", GetHNRec.TCPPort);
 					strncat_s(Command,sizeof(Command),tcpport,_TRUNCATE);

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2017-05-14 14:55:59 UTC (rev 6725)
+++ trunk/teraterm/ttpset/ttset.c	2017-05-17 13:01:16 UTC (rev 6726)
@@ -3715,7 +3715,7 @@
 	char TempDir[MAXPATHLEN];
 	WORD ParamPort = 0;
 	WORD ParamCom = 0;
-	WORD ParamTCP = 65535;
+	WORD ParamTCP = 0;
 	WORD ParamTel = 2;
 	WORD ParamBin = 2;
 	DWORD ParamBaud = BaudNone;
@@ -3900,7 +3900,7 @@
 		else if (_strnicmp(Temp, "/P=", 3) == 0) {	/* TCP port num */
 			ParamPort = IdTCPIP;
 			if (sscanf(&Temp[3], "%hd", &ParamTCP) != 1)
-				ParamTCP = 65535;
+				ParamTCP = 0;
 		}
 		else if (_stricmp(Temp, "/PIPE") == 0 ||
 		         _stricmp(Temp, "/NAMEDPIPE") == 0) {	/* \x96\xBC\x91O\x95t\x82\xAB\x83p\x83C\x83v */
@@ -4014,7 +4014,7 @@
 		if (b == ':') {
 			ts->HostName[i - 1] = 0;
 			if (sscanf(&(ts->HostName[i]), "%d", &ParamTCP) != 1)
-				ParamTCP = 65535;
+				ParamTCP = 0;
 		}
 #endif							/* NO_INET6 */
 	}
@@ -4022,7 +4022,7 @@
 	switch (ParamPort) {
 	case IdTCPIP:
 		ts->PortType = IdTCPIP;
-		if (ParamTCP < 65535)
+		if (ParamTCP != 0)
 			ts->TCPPort = ParamTCP;
 		if (ParamTel < 2)
 			ts->Telnet = ParamTel;



Ttssh2-commit メーリングリストの案内