diff options
author | Denis Vlasenko | 2008-04-01 16:29:21 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-04-01 16:29:21 +0000 |
commit | c59d802a5aa70c0c8f1f9fb8478351c6cbc3f86d (patch) | |
tree | 23df9b58f96ac9f3b8604f2fbb024a4de699e95d /coreutils/basename.c | |
parent | 9895dfdb9adc55c233bb7945cb8d13bf8044b4b2 (diff) | |
download | busybox-c59d802a5aa70c0c8f1f9fb8478351c6cbc3f86d.zip busybox-c59d802a5aa70c0c8f1f9fb8478351c6cbc3f86d.tar.gz |
basename: tiny shrink
Diffstat (limited to 'coreutils/basename.c')
-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 ed23779..2216182 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 */ } } |