Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3152 by maya, Sat Oct 4 12:37:29 2008 UTC revision 3156 by doda, Thu Nov 6 11:10:33 2008 UTC
# Line 3557  int SSH_scp_transaction(PTInstVar pvar, Line 3557  int SSH_scp_transaction(PTInstVar pvar,
3557                  strncpy_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), sendfile, _TRUNCATE);  // full path                  strncpy_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), sendfile, _TRUNCATE);  // full path
3558                  ExtractFileName(sendfile, c->scp.localfile, sizeof(c->scp.localfile));   // file name only                  ExtractFileName(sendfile, c->scp.localfile, sizeof(c->scp.localfile));   // file name only
3559                  if (dstfile == NULL || dstfile[0] == '\0') { // remote file path                  if (dstfile == NULL || dstfile[0] == '\0') { // remote file path
3560                          strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), c->scp.localfile, _TRUNCATE);  // full path                          strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), ".", _TRUNCATE);  // full path
3561                  } else {                  } else {
3562                          strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), dstfile, _TRUNCATE);  // full path                          strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), dstfile, _TRUNCATE);  // full path
3563                  }                  }

Legend:
Removed from v.3152  
changed lines
  Added in v.3156

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