Fix memmove length calculation in SFTP client example

pull/305/head
Guido Vranken 2021-01-08 11:07:15 +01:00
parent ace2546ce2
commit ec2ecb8a82
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ static void clean_path(char* path)
/* remove any double '/' chars */
for (i = 0; i < sz; i++) {
if (path[i] == '/' && path[i+1] == '/') {
WMEMMOVE(path + i, path + i + 1, sz - i + 1);
WMEMMOVE(path + i, path + i + 1, sz - i);
sz -= 1;
i--;
}