Ad
  • Custom User Avatar

    I figured out why this was happening for me. I was trying to add a null pointer to the end of the buffer using the strlen() call, but, obviously, as there wasn't a null pointer in the buffer already, strlen just went until the most recent pointer and added one in the same place.