We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e53827 commit 65f01e7Copy full SHA for 65f01e7
src/internal.c
@@ -17007,7 +17007,7 @@ int wolfSSH_CleanPath(WOLFSSH* ssh, char* in)
17007
/* remove any /./ patterns, direcotries, exclude cases like ./ok./test */
17008
for (i = 1; i + 1 < sz; i++) {
17009
if (path[i] == '.' && path[i - 1] == WS_DELIM && path[i + 1] == WS_DELIM) {
17010
- WMEMMOVE(path + (i-1), path + (i+1), sz - (i-1));
+ WMEMMOVE(path + (i-1), path + (i+1), sz - i);
17011
sz -= 2; /* removed '/.' from string*/
17012
i--;
17013
}
0 commit comments