Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 52 |
#include <sys/stat.h> |
#include <sys/stat.h> |
| 53 |
#include <assert.h> |
#include <assert.h> |
| 54 |
|
|
| 55 |
|
#include <direct.h> |
| 56 |
|
|
| 57 |
// SSH2 macro |
// SSH2 macro |
| 58 |
#ifdef _DEBUG |
#ifdef _DEBUG |
| 3434 |
|
|
| 3435 |
_snprintf_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), _TRUNCATE, "%s\\%s", cwd, fn ? fn : sendfile); |
_snprintf_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), _TRUNCATE, "%s\\%s", cwd, fn ? fn : sendfile); |
| 3436 |
ExtractFileName(c->scp.localfilefull, c->scp.localfile, sizeof(c->scp.localfile)); // file name only |
ExtractFileName(c->scp.localfilefull, c->scp.localfile, sizeof(c->scp.localfile)); // file name only |
| 3437 |
|
|
| 3438 |
|
free(cwd); // free!! |
| 3439 |
} else { |
} else { |
| 3440 |
_snprintf_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), _TRUNCATE, "%s", dstfile); |
_snprintf_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), _TRUNCATE, "%s", dstfile); |
| 3441 |
ExtractFileName(dstfile, c->scp.localfile, sizeof(c->scp.localfile)); // file name only |
ExtractFileName(dstfile, c->scp.localfile, sizeof(c->scp.localfile)); // file name only |
|
|
Legend:
| Removed from v.3091 |
|
| changed lines |
| |
Added in v.3092 |
|
|
| |