Skip to content

Commit 793b432

Browse files
committed
Use Length instead of Position to keep thing clear
1 parent 74d9290 commit 793b432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ protected async Task<Stream> ExecuteAsync(ProcessStartInfo startInfo, Cancellati
277277
return Stream.Null;
278278
}
279279

280-
switch (sourceBuffer.Length, errorBuffer.Position)
280+
switch (sourceBuffer.Length, errorBuffer.Length)
281281
{
282282
case (0, 0):
283283
var errorMessage = Encoding.UTF8.GetString(errorBuffer.GetBuffer(), 0, (int)errorBuffer.Position);

0 commit comments

Comments
 (0)