svnno****@sourc*****
svnno****@sourc*****
2010年 5月 12日 (水) 22:17:01 JST
Revision: 3880 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3880 Author: yutakapon Date: 2010-05-12 22:17:01 +0900 (Wed, 12 May 2010) Log Message: ----------- /baud で正しく数値を処理できていなかったバグを修正した。 Modified Paths: -------------- trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2010-05-12 11:27:51 UTC (rev 3879) +++ trunk/teraterm/ttpset/ttset.c 2010-05-12 13:17:01 UTC (rev 3880) @@ -2941,8 +2941,10 @@ if (_strnicmp(Temp, "/BAUD=", 6) == 0) { /* Serial port baud rate */ ParamPort = IdSerial; - if (atoi(&Temp[3]) != 0) - ParamBaud = atoi(&Temp[3]); + ParamBaud = atoi(&Temp[6]); + if (ParamBaud == 0) { + ParamBaud = 9600; + } } else if (_stricmp(Temp, "/B") == 0) { /* telnet binary */ ParamPort = IdTCPIP;