checksrc: fix possible endless loop when detecting `BANNEDFUNC`
No binary (build failed)
—
(log yok)
| @@ -902,6 +902,8 @@ sub scanfile { | |
| "use of $bad is banned"); | |
| my $replace = 'x' x (length($bad) + 1); | |
| $prefix =~ s/\*/\\*/; | |
| + | $prefix =~ s/\[/\\[/; |
| + | $prefix =~ s/\]/\\]/; |
| $suff =~ s/\(/\\(/; | |
| $l =~ s/$prefix$bad$suff/$prefix$replace/; | |
| goto again; | |