summaryrefslogtreecommitdiff
path: root/bin/ksh/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/path.c')
-rw-r--r--bin/ksh/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/path.c b/bin/ksh/path.c
index 7262730e0fa..ff8d26e61d0 100644
--- a/bin/ksh/path.c
+++ b/bin/ksh/path.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: path.c,v 1.20 2018/01/01 19:45:56 millert Exp $ */
+/* $OpenBSD: path.c,v 1.21 2018/01/04 19:06:16 millert Exp $ */
#include <sys/stat.h>
@@ -228,7 +228,7 @@ do_phys_path(XString *xsp, char *xp, const char *path)
p++;
if (!*p)
break;
- len = (q = strchr(p, '/')) ? (size_t)(q - p) : strlen(p);
+ len = (q = strchr(p, '/')) ? q - p : strlen(p);
if (len == 1 && p[0] == '.')
continue;
if (len == 2 && p[0] == '.' && p[1] == '.') {