Catastrophically bad bug discovered, string write was writing zeroes instead of spaces (null terminators laugh in the face of god when he farts)

This commit is contained in:
illegitimate-egg 2025-03-09 00:53:49 +00:00
parent cc3f159927
commit 61f6cca295

View File

@ -269,9 +269,10 @@ mod tests {
assert_eq!( assert_eq!(
client_disconnect("test string"), client_disconnect("test string"),
[ [
14, 116, 101, 115, 116, 32, 115, 116, 114, 105, 110, 103, 0, 0, 0, 0, 0, 0, 0, 0, 14, 116, 101, 115, 116, 32, 115, 116, 114, 105, 110, 103, 32, 32, 32, 32, 32, 32,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32
] ]
); );
} }