scrut(1): fix syntax error
This commit is contained in:
parent
19eee6b4e5
commit
f96ed9c1f3
@ -48,8 +48,9 @@ int main(int argc, char *argv[]) {
|
||||
else { sel[p - args] = c; }
|
||||
}
|
||||
|
||||
/* straighten out selections */
|
||||
for (size_t i = 0, p = sel; i < (sizeof sel) / (sizeof *sel); ++i) {
|
||||
/* straighten out selections; permute out nulls */
|
||||
p = sel;
|
||||
for (size_t i = 0; i < (sizeof sel) / (sizeof *sel); ++i) {
|
||||
if (sel[i] != '\0') {
|
||||
*p = sel[i];
|
||||
if (&sel[i] != p++) { sel[i] = '\0'; }
|
||||
|
Loading…
Reference in New Issue
Block a user