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 7944 by maya, Mon Aug 12 18:48:20 2019 UTC revision 7948 by maya, Tue Aug 13 13:18:05 2019 UTC
# Line 3886  static INT_PTR CALLBACK TTXScpDialog(HWN Line 3886  static INT_PTR CALLBACK TTXScpDialog(HWN
3886                                  SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir);                                  SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir);
3887                                  strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE);                                  strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE);
3888    
3889                                    // 受信パスを取り出し、ts->FileDir も合わせて更新する。
3890                                    hWnd = GetDlgItem(dlg, IDC_RECVFILE_TO);
3891                                    SendMessage(hWnd, WM_GETTEXT , sizeof(recvdir), (LPARAM)recvdir);
3892                                    strncpy_s(pvar->ts->FileDir, sizeof(pvar->ts->FileDir), recvdir, _TRUNCATE);
3893    
3894                                  SSH_start_scp(pvar, sendfile, sendfiledir);                                  SSH_start_scp(pvar, sendfile, sendfiledir);
3895                                  //SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE);                                  //SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE);
3896                                  EndDialog(dlg, 1); // dialog close                                  EndDialog(dlg, 1); // dialog close
# Line 3914  static INT_PTR CALLBACK TTXScpDialog(HWN Line 3919  static INT_PTR CALLBACK TTXScpDialog(HWN
3919                                  char recvpath[MAX_PATH] = "";                                  char recvpath[MAX_PATH] = "";
3920                                  char* fn = strrchr(szFileName, '/');                                  char* fn = strrchr(szFileName, '/');
3921                                  char recvfn[sizeof(szFileName)];                                  char recvfn[sizeof(szFileName)];
3922    
3923                                    // 送信パスを取り出し、ts->ScpSendDir も合わせて更新する。
3924                                    hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO);
3925                                    SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir);
3926                                    strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE);
3927    
3928                                    // 受信パスを取り出し、ts->FileDir も合わせて更新する。
3929                                    hWnd = GetDlgItem(dlg, IDC_RECVFILE_TO);
3930                                    SendMessage(hWnd, WM_GETTEXT , sizeof(recvdir), (LPARAM)recvdir);
3931                                    strncpy_s(pvar->ts->FileDir, sizeof(pvar->ts->FileDir), recvdir, _TRUNCATE);
3932    
3933                                  if (fn) {                                  if (fn) {
3934                                          fn++;                                          fn++;
3935                                          if (*fn == '\0') {                                          if (*fn == '\0') {
# Line 3925  static INT_PTR CALLBACK TTXScpDialog(HWN Line 3941  static INT_PTR CALLBACK TTXScpDialog(HWN
3941                                  }                                  }
3942                                  strncpy_s(recvfn, sizeof(recvfn), fn, _TRUNCATE);                                  strncpy_s(recvfn, sizeof(recvfn), fn, _TRUNCATE);
3943                                  replaceInvalidFileNameChar(recvfn, '_');                                  replaceInvalidFileNameChar(recvfn, '_');
                                 SendMessage(GetDlgItem(dlg, IDC_RECVFILE_TO), WM_GETTEXT, sizeof(recvdir), (LPARAM)recvdir);  
3944                                  _snprintf_s(recvpath, sizeof(recvpath), _TRUNCATE, "%s\\%s", recvdir, recvfn);                                  _snprintf_s(recvpath, sizeof(recvpath), _TRUNCATE, "%s\\%s", recvdir, recvfn);
3945                                  SSH_scp_transaction(pvar, szFileName, recvpath, FROMREMOTE);                                  SSH_scp_transaction(pvar, szFileName, recvpath, FROMREMOTE);
3946                                  EndDialog(dlg, 1); // dialog close                                  EndDialog(dlg, 1); // dialog close

Legend:
Removed from v.7944  
changed lines
  Added in v.7948

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