From e2c2a9670f31b97e9d2386871a215a278258f401 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Tue, 14 Dec 2021 19:04:22 -0700 Subject: [PATCH] Fixed crashing due to index out of bounds error --- Program.cs | 2 +- chord.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index e1714eb..fe8ba70 100644 --- a/Program.cs +++ b/Program.cs @@ -208,7 +208,7 @@ namespace chord chatBoxList.OpenSelectedItem += args => { if (currentChannelMessages[args.Item].Split(" | ")[1].Contains("http")) - for (var i = 0; i <= currentChannelMessages[args.Item].Split(" | ")[1].Split(" ").Count(); i++) + for (var i = 0; i < currentChannelMessages[args.Item].Split(" | ")[1].Split(" ").Count(); i++) if (currentChannelMessages[args.Item].Split(" | ")[1].Split(" ")[i].Contains("http")) { var procStartInfo = new ProcessStartInfo("/bin/sh", diff --git a/chord.csproj b/chord.csproj index fef0ee5..ac4e539 100644 --- a/chord.csproj +++ b/chord.csproj @@ -7,8 +7,8 @@ Release;Debug x64 false - 0.0.1.0 - 0.0.1.0 + 0.0.2.0 + 0.0.2.0