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 3005 by maya, Thu Aug 30 12:42:06 2007 UTC revision 3006 by maya, Thu Aug 30 13:18:20 2007 UTC
# Line 939  static BOOL CALLBACK TTXHostDlg(HWND dlg Line 939  static BOOL CALLBACK TTXHostDlg(HWND dlg
939                  strncpy_s(EntName, sizeof(EntName), "COM", _TRUNCATE);                  strncpy_s(EntName, sizeof(EntName), "COM", _TRUNCATE);
940                  if ((comports=DetectComPorts(ComPortTable, GetHNRec->MaxComPort, ComPortDesc)) >= 0) {                  if ((comports=DetectComPorts(ComPortTable, GetHNRec->MaxComPort, ComPortDesc)) >= 0) {
941                          for (i=0; i<comports; i++) {                          for (i=0; i<comports; i++) {
942                                    // MaxComPort を越えるポートは表示しない
943                                    if (ComPortTable[i] > GetHNRec->MaxComPort) {
944                                            continue;
945                                    }
946    
947                                  _snprintf_s(&EntName[3], sizeof(EntName)-3, _TRUNCATE, "%d", ComPortTable[i]);                                  _snprintf_s(&EntName[3], sizeof(EntName)-3, _TRUNCATE, "%d", ComPortTable[i]);
948                                  if (ComPortDesc[i] != NULL) {                                  if (ComPortDesc[i] != NULL) {
949                                          strncat_s(EntName, sizeof(EntName), ": ", _TRUNCATE);                                          strncat_s(EntName, sizeof(EntName), ": ", _TRUNCATE);

Legend:
Removed from v.3005  
changed lines
  Added in v.3006

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