aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-01 16:29:21 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-01 16:29:21 +0000
commitc59d802a5aa70c0c8f1f9fb8478351c6cbc3f86d (patch)
tree23df9b58f96ac9f3b8604f2fbb024a4de699e95d /coreutils
parent9895dfdb9adc55c233bb7945cb8d13bf8044b4b2 (diff)
downloadbusybox-c59d802a5aa70c0c8f1f9fb8478351c6cbc3f86d.tar.gz
basename: tiny shrink
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/basename.c2
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 */
}
}