Skip to content

Commit 10286e8

Browse files
committed
Use extension for slightly easier reading
1 parent a4ddc01 commit 10286e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BinaryObjectScanner/Scanner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre
282282
byte[] magic = new byte[16];
283283
try
284284
{
285-
int read = stream.Read(magic, 0, 16);
285+
magic = stream.ReadBytes(16);
286286
stream.Seek(0, SeekOrigin.Begin);
287287
}
288288
catch (Exception ex)

0 commit comments

Comments
 (0)