`sizeof(string)` included the null terminator, and so was one character too long, resulting in eating too many characters. I could've changed it to `sizeof(string)-1`, but figured just using `9` was clearer.