Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 3436 |
fn = strrchr(sendfile, '/'); |
fn = strrchr(sendfile, '/'); |
| 3437 |
if (fn && fn[1] == '\0') |
if (fn && fn[1] == '\0') |
| 3438 |
goto error; |
goto error; |
| 3439 |
cwd = _getcwd(NULL, 0); |
cwd = pvar->ts->FileDir; |
| 3440 |
|
//cwd = _getcwd(NULL, 0); |
| 3441 |
|
|
| 3442 |
_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); |
| 3443 |
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 |
| 3444 |
|
|
| 3445 |
free(cwd); // free!! |
//free(cwd); // free!! |
| 3446 |
} else { |
} else { |
| 3447 |
_snprintf_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), _TRUNCATE, "%s", dstfile); |
_snprintf_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), _TRUNCATE, "%s", dstfile); |
| 3448 |
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.3104 |
|
| changed lines |
| |
Added in v.3105 |
|
|
| |