From 793b432d61f2ddc37dc0b8f760d1d6a1441a6ec4 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sun, 21 Aug 2022 22:02:46 -0400 Subject: [PATCH] Use Length instead of Position to keep thing clear --- Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs index 0f32137f1..7003804b8 100644 --- a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs +++ b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs @@ -277,7 +277,7 @@ namespace Flow.Launcher.Core.Plugin return Stream.Null; } - switch (sourceBuffer.Length, errorBuffer.Position) + switch (sourceBuffer.Length, errorBuffer.Length) { case (0, 0): var errorMessage = Encoding.UTF8.GetString(errorBuffer.GetBuffer(), 0, (int)errorBuffer.Position);