fixed null termination of buffer

This had the effect of never letting the string become shorter again when re-using the same response struct.