diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-31 11:50:52 +0300 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-05-31 11:19:10 +0200 |
commit | ac93e2aea742b379161e085d3c08f3cd49ece702 (patch) | |
tree | 8007d5396b3a1dfb2535dc3952b7d7d976e6b300 /libssh | |
parent | 560e93803804224c137d8dee6eae99ab2296734a (diff) | |
download | libssh-ac93e2aea742b379161e085d3c08f3cd49ece702.tar.gz libssh-ac93e2aea742b379161e085d3c08f3cd49ece702.tar.xz libssh-ac93e2aea742b379161e085d3c08f3cd49ece702.zip |
Fix unclean null termination in ~ expending
Diffstat (limited to 'libssh')
-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 555c25b4..676ed76c 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; } |