fix for windows sftp build

pull/322/head
Jacob Barthelmeh 2021-02-03 22:26:58 +07:00
parent 8a00381e0c
commit 997bd8a0d0
1 changed files with 1 additions and 1 deletions

View File

@ -2172,7 +2172,7 @@ int wolfSSH_SFTP_RecvOpenDir(WOLFSSH* ssh, int reqId, byte* data, word32 maxSz)
}
WMEMCPY(dirName, data + idx, sz);
dirName[sz] = '\0';
if (wolfSSH_CleanPath(ssh, buf) < 0) {
if (wolfSSH_CleanPath(ssh, dirName) < 0) {
WFREE(dirName, ssh->ctx->heap, DYNTYPE_BUFFER);
return WS_FATAL_ERROR;
}