Forgot to adjust where the null terminator goes on the end of the buffer