summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index e303c3bf6f..d3ad9350d3 100644
--- a/file.c
+++ b/file.c
@@ -1961,6 +1961,7 @@ path_check_1(path)
#else
if (getwd(buf) == 0) return 0;
#endif
+ strncat(buf, "/", MAXPATHLEN);
strncat(buf, path, MAXPATHLEN);
buf[MAXPATHLEN] = '\0';
return path_check_1(buf);