-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Line 130:
Array.Copy(str, 0, u.asm_buf, u.asm_buf_fill, Math.Min(str.Length, avail));
Should be:
Array.Copy(str, 0, u.asm_buf, u.asm_buf_fill, Math.Min(str.Length, avail));
u.asm_buf[u.asm_buf_fill + str.Length] = '\0';
With the null terminator added correctly, then you don't need this bandaid:
Line 103:
for (var i = 0; i < u.asm_buf.Length; i++)
u.asm_buf[i] = '\0';
Can now correctly match the original as:
u.asm_buf[0] = '\0';
Metadata
Metadata
Assignees
Labels
No labels