diff --git a/FixCue/Form1.cs b/FixCue/Form1.cs index 52313f6..eda7fa7 100644 --- a/FixCue/Form1.cs +++ b/FixCue/Form1.cs @@ -246,7 +246,7 @@ private string getcodetype(string path) } else if ((0xE0 & MyByte[i]) == 0xC0) // 110xxxxx { - if (i+1>MyByte.Length) + if (i + 1 > MyByte.Length) { isUTF8 = false; break; @@ -269,7 +269,7 @@ private string getcodetype(string path) isUTF8 = false; break; } - if (i + 1 > MyByte.Length) + if (i + 2 > MyByte.Length) { isUTF8 = false; break;