diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/basename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index ed2377948..2216182e0 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c @@ -42,7 +42,7 @@ int basename_main(int argc, char **argv) n = strlen(*argv); if ((m > n) && ((strcmp)(s+m-n, *argv) == 0)) { m -= n; - s[m] = '\0'; + /*s[m] = '\0'; - redundant */ } } |