summaryrefslogtreecommitdiff
path: root/openbsd-compat/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/realpath.c')
-rw-r--r--openbsd-compat/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index 77da14e7c..922305ffd 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -150,7 +150,7 @@ loop:
150 serrno = ENAMETOOLONG; 150 serrno = ENAMETOOLONG;
151 goto err1; 151 goto err1;
152 } 152 }
153 if (needslash == 0) 153 if (needslash)
154 strlcat(resolved, "/", MAXPATHLEN); 154 strlcat(resolved, "/", MAXPATHLEN);
155 strlcat(resolved, wbuf, MAXPATHLEN); 155 strlcat(resolved, wbuf, MAXPATHLEN);
156 } 156 }