basename: tiny shrink

This commit is contained in:
Denis Vlasenko 2008-04-01 16:29:21 +00:00
parent 9895dfdb9a
commit c59d802a5a

View File

@ -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 */
}
}