From b210aa2cfa546d8c31f8c725d1de3050c747bd6e Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Tue, 30 Sep 2003 23:49:06 +0000 Subject: - (bal) Fix issues in openbsd-compat/realpath.c --- openbsd-compat/realpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsd-compat/realpath.c') 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: serrno = ENAMETOOLONG; goto err1; } - if (needslash == 0) + if (needslash) strlcat(resolved, "/", MAXPATHLEN); strlcat(resolved, wbuf, MAXPATHLEN); } -- cgit v1.2.3