summaryrefslogtreecommitdiffstats
path: root/libssh/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/misc.c')
-rw-r--r--libssh/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/misc.c b/libssh/misc.c
index 555c25b..676ed76 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -584,7 +584,7 @@ char *ssh_path_expand_tilde(const char *d) {
if (lh > 0) {
memcpy(r, h, lh);
}
- memcpy(r + lh, p, ld);
+ memcpy(r + lh, p, ld + 1);
return r;
}