summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 289cb4c2cd..560e2cd924 100644
--- a/dir.c
+++ b/dir.c
@@ -565,7 +565,7 @@ extract_path(p, pend)
memcpy(alloc, p, len);
if (len > 1 && pend[-1] == '/'
#if defined DOSISH
- && len > 2 && pend[-2] != ':'
+ && pend[-2] != ':'
#endif
) {
alloc[len-1] = 0;