diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-31 11:50:52 +0300 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-31 11:50:52 +0300 |
commit | 7e17838c0b472c7e92e0c21d0f9094c2a6b5b957 (patch) | |
tree | c0fbf2cbc33dc2e80c329f456570f0f8617f5d42 | |
parent | 84f6945a9c7bfb0ca22d4340d863340bd6d3c96b (diff) | |
download | libssh-7e17838c0b472c7e92e0c21d0f9094c2a6b5b957.tar.gz libssh-7e17838c0b472c7e92e0c21d0f9094c2a6b5b957.tar.xz libssh-7e17838c0b472c7e92e0c21d0f9094c2a6b5b957.zip |
Fix unclean null termination in ~ expending
-rw-r--r-- | libssh/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/misc.c b/libssh/misc.c index 3d58e50f..9c7c0e66 100644 --- a/libssh/misc.c +++ b/libssh/misc.c @@ -554,7 +554,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; } |