Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 1182 |
GetDlgItemText(dlg, IDC_HOSTCOM, EntName, |
GetDlgItemText(dlg, IDC_HOSTCOM, EntName, |
| 1183 |
sizeof(EntName) - 1); |
sizeof(EntName) - 1); |
| 1184 |
if (strncmp(EntName, "COM", 3) == 0 && EntName[3] != '\0') { |
if (strncmp(EntName, "COM", 3) == 0 && EntName[3] != '\0') { |
| 1185 |
|
#if 0 |
| 1186 |
GetHNRec->ComPort = (BYTE) (EntName[3]) - 0x30; |
GetHNRec->ComPort = (BYTE) (EntName[3]) - 0x30; |
| 1187 |
if (strlen(EntName) > 4) |
if (strlen(EntName) > 4) |
| 1188 |
GetHNRec->ComPort = |
GetHNRec->ComPort = |
| 1189 |
GetHNRec->ComPort * 10 + (BYTE) (EntName[4]) - |
GetHNRec->ComPort * 10 + (BYTE) (EntName[4]) - |
| 1190 |
0x30; |
0x30; |
| 1191 |
|
#else |
| 1192 |
|
GetHNRec->ComPort = atoi(&EntName[3]); |
| 1193 |
|
#endif |
| 1194 |
if (GetHNRec->ComPort > GetHNRec->MaxComPort) |
if (GetHNRec->ComPort > GetHNRec->MaxComPort) |
| 1195 |
GetHNRec->ComPort = 1; |
GetHNRec->ComPort = 1; |
| 1196 |
} else { |
} else { |
|
|
Legend:
| Removed from v.2996 |
|
| changed lines |
| |
Added in v.2997 |
|
|
| |