aboutsummaryrefslogtreecommitdiff
path: root/sbofind
diff options
context:
space:
mode:
Diffstat (limited to 'sbofind')
-rwxr-xr-xsbofind8
1 files changed, 5 insertions, 3 deletions
diff --git a/sbofind b/sbofind
index d977072..fe2867d 100755
--- a/sbofind
+++ b/sbofind
@@ -77,12 +77,14 @@ sub get_file_contents ($) {
-f $_[0] or return "$_[0] doesn't exist.\n";
my $fh = open_read shift;
my $contents = do {local $/; <$fh>};
- $contents =~ s/\n/\n /g;
- $contents =~ s/ $//g;
+ for ($contents) {
+ s/\n/\n /g;
+ s/ $//g;
+ }
return $contents;
}
-perform_search $search;
+my $findings = perform_search $search;
# pretty formatting
if (exists $$findings[0]) {