basename: tiny shrink
This commit is contained in:
parent
9895dfdb9a
commit
c59d802a5a
@ -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 */
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user