Skip to content

Commit

Permalink
Fix ASCII length reading
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimMaple committed Sep 20, 2024
1 parent ada51e2 commit 7611d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InjectedTimer/ScriptFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static string ReadASCII(long addr, int count)
private static int ASCIILength(byte[] data)
{
int i = 0;
while(data[i] != 0) i++;
while(i < data.Length && data[i] != 0) i++;
return i;
}

Expand Down

0 comments on commit 7611d7b

Please sign in to comment.