aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libssh/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/misc.c b/libssh/misc.c
index 552c0a2..c971367 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -664,6 +664,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);
}