diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/dirname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index 8313e99..935a831 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c @@ -37,7 +37,7 @@ extern int dirname_main(int argc, char **argv) argv++; s=*argv+strlen(*argv)-1; - while (s != *argv && *s == '/') { + while (s > *argv && *s == '/') { *s-- = '\0'; } s = strrchr(*argv, '/'); |