aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
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);