aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-03-08 14:32:16 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-03-08 14:32:16 +0000
commit7f4eaea507b832e39317cb612274bf81526b1f60 (patch)
tree5bec37e782f636e1a11df9c8df38db224672ecd1 /sshfs.c
parent57fc3f4b6a091c6b699004be2a0add104aed89a2 (diff)
downloadsshfs-7f4eaea507b832e39317cb612274bf81526b1f60.tar
sshfs-7f4eaea507b832e39317cb612274bf81526b1f60.tar.gz
sshfs-7f4eaea507b832e39317cb612274bf81526b1f60.tar.bz2
sshfs-7f4eaea507b832e39317cb612274bf81526b1f60.zip
fix
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index 64f037d..636b856 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -1339,7 +1339,7 @@ static void transform_symlink(const char *path, char **linkp)
return;
dotdots--;
- newlink = malloc(dotdots * 3 + l ? strlen(l) : 1 + 10);
+ newlink = malloc(dotdots * 3 + strlen(l) + 2);
if (!newlink) {
fprintf(stderr, "sshfs: memory allocation failed\n");
exit(1);