Skip to content

Commit fbb85c0

Browse files
committed
using string concatenation for performence
1 parent 2cf9a17 commit fbb85c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/parser/fs/ntfs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def cluster_from_attribute_non_resident(attribute, cluster_num = 0, size_max = (
181181

182182
data = ""
183183
while data.length < size_wanted
184-
data += @file_handler.read(size_wanted - data.length)
184+
data << @file_handler.read(size_wanted - data.length)
185185
end
186186
attribut += data
187187
end

0 commit comments

Comments
 (0)