Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2996 by yutakapon, Fri Aug 17 05:49:55 2007 UTC revision 2997 by yutakapon, Fri Aug 17 06:15:06 2007 UTC
# Line 1182  static BOOL CALLBACK TTXHostDlg(HWND dlg Line 1182  static BOOL CALLBACK TTXHostDlg(HWND dlg
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26