Skip to content

Commit

Permalink
Abide by read size parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Brandon Wiley committed Oct 1, 2020
1 parent f816a0e commit a762af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TransmissionLinux/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Connection

public func read(size: Int) -> Data?
{
var data = Data()
var data = Data(count: size)

do
{
Expand Down

0 comments on commit a762af0

Please sign in to comment.