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 8316 by yutakapon, Wed Oct 16 13:19:25 2019 UTC revision 8389 by doda, Thu Nov 21 11:30:17 2019 UTC
# Line 4103  int SSH_scp_transaction(PTInstVar pvar, Line 4103  int SSH_scp_transaction(PTInstVar pvar,
4103          if (direction == TOREMOTE) {  // copy local to remote          if (direction == TOREMOTE) {  // copy local to remote
4104                  fp = fopen(sendfile, "rb");                  fp = fopen(sendfile, "rb");
4105                  if (fp == NULL) {                  if (fp == NULL) {
4106                          char buf[80];                          char buf[1024];
4107                          _snprintf_s(buf, sizeof(buf), _TRUNCATE, "fopen: %d", GetLastError());                          int len;
4108                            strcpy_s(buf, sizeof(buf), "Can't open file for reading: ");
4109                            len = strlen(buf);
4110                            FormatMessage(
4111                                FORMAT_MESSAGE_FROM_SYSTEM,
4112                                NULL,
4113                                GetLastError(),
4114                                0,
4115                                buf+len,
4116                                sizeof(buf)-len,
4117                                NULL);
4118                          MessageBox(NULL, buf, "TTSSH: file open error", MB_OK | MB_ICONERROR);                          MessageBox(NULL, buf, "TTSSH: file open error", MB_OK | MB_ICONERROR);
4119                          goto error;                          goto error;
4120                  }                  }
# Line 4159  int SSH_scp_transaction(PTInstVar pvar, Line 4169  int SSH_scp_transaction(PTInstVar pvar,
4169    
4170                  fp = fopen(c->scp.localfilefull, "wb");                  fp = fopen(c->scp.localfilefull, "wb");
4171                  if (fp == NULL) {                  if (fp == NULL) {
4172                          char buf[512];                          char buf[1024];
4173                          _snprintf_s(buf, sizeof(buf), _TRUNCATE, "fopen: %d", GetLastError());                          int len;
4174                          MessageBox(NULL, buf, "TTSSH: file open write error", MB_OK | MB_ICONERROR);                          strcpy_s(buf, sizeof(buf), "Can't open file for writing: ");
4175                            len = strlen(buf);
4176                            FormatMessage(
4177                                FORMAT_MESSAGE_FROM_SYSTEM,
4178                                NULL,
4179                                GetLastError(),
4180                                0,
4181                                buf+len,
4182                                sizeof(buf)-len,
4183                                NULL);
4184                            MessageBox(NULL, buf, "TTSSH: file open error", MB_OK | MB_ICONERROR);
4185                          goto error;                          goto error;
4186                  }                  }
4187    

Legend:
Removed from v.8316  
changed lines
  Added in v.8389

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