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 4867 by maya, Fri Mar 23 14:27:48 2012 UTC revision 4888 by maya, Mon Apr 9 16:54:49 2012 UTC
# Line 3822  int SSH_scp_transaction(PTInstVar pvar, Line 3822  int SSH_scp_transaction(PTInstVar pvar,
3822                  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
3823                  ExtractFileName(sendfile, c->scp.localfile, sizeof(c->scp.localfile));   // file name only                  ExtractFileName(sendfile, c->scp.localfile, sizeof(c->scp.localfile));   // file name only
3824                  if (dstfile == NULL || dstfile[0] == '\0') { // remote file path                  if (dstfile == NULL || dstfile[0] == '\0') { // remote file path
3825                          strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), ".", _TRUNCATE);  // full path                          strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), "~/", _TRUNCATE);  // full path
3826                  } else {                  } else {
3827                          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
3828                  }                  }

Legend:
Removed from v.4867  
changed lines
  Added in v.4888

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