diff options
Diffstat (limited to 'libssh')
| -rw-r--r-- | libssh/misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/misc.c b/libssh/misc.c index 4b562c71..3d58e50f 100644 --- a/libssh/misc.c +++ b/libssh/misc.c @@ -634,6 +634,7 @@ char *ssh_path_expand_escape(ssh_session session, const char *s) { } l = strlen(buf); strcat(buf + l, x); + buf[i] = '\0'; SAFE_FREE(x); } |
