OT Trash Bytes

Thanks again, LunarCookies!
This commit is contained in:
Kurt
2015-03-23 22:51:04 -07:00
parent 1d3b439753
commit 53cfb0d54f

View File

@@ -2333,7 +2333,7 @@ private byte[] preparepkx(bool click = true)
// Block D
// Convert OT field back to bytes
byte[] OT = Encoding.Unicode.GetBytes(TB_OT.Text.Replace("\u0027", "\u2019"));
Array.Resize(ref OT, 24);
Array.Resize(ref OT, OT.Length + 2); // Pad with \0000 to terminate
Array.Copy(OT, 0, pkx, 0xB0, OT.Length);
if (pkx[0x93] == 0)