Skip to content

Commit

Permalink
Fixed typo. UTF8nobom guessing method from: http://kuyur.info/blog/ar…
Browse files Browse the repository at this point in the history
  • Loading branch information
fireattack committed Aug 12, 2015
1 parent 2790fbb commit 00e621d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FixCue/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 00e621d

Please sign in to comment.